summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/requires_ast_print.cpp
blob: e884c71c86635167ba32056f6fd0ff25fc448a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s

// RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s
// RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp-simd -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
// expected-no-diagnostics

#ifndef HEADER
#define HEADER

#pragma omp requires unified_address 
// CHECK:#pragma omp requires unified_address

#pragma omp requires unified_shared_memory
// CHECK:#pragma omp requires unified_shared_memory

#pragma omp requires reverse_offload
// CHECK:#pragma omp requires reverse_offload

#pragma omp requires dynamic_allocators
// CHECK:#pragma omp requires dynamic_allocators

#pragma omp requires atomic_default_mem_order(seq_cst)
// CHECK:#pragma omp requires atomic_default_mem_order(seq_cst)

#endif
OpenPOWER on IntegriCloud