1 // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
2 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s
3 // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
4 
5 // RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s
6 // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -emit-pch -o %t %s
7 // RUN: %clang_cc1 -fopenmp-simd -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
8 // expected-no-diagnostics
9 
10 #ifndef HEADER
11 #define HEADER
12 
13 #pragma omp requires unified_address
14 // CHECK:#pragma omp requires unified_address
15 
16 #pragma omp requires unified_shared_memory
17 // CHECK:#pragma omp requires unified_shared_memory
18 
19 #pragma omp requires reverse_offload
20 // CHECK:#pragma omp requires reverse_offload
21 
22 #pragma omp requires dynamic_allocators
23 // CHECK:#pragma omp requires dynamic_allocators
24 
25 #pragma omp requires atomic_default_mem_order(seq_cst)
26 // CHECK:#pragma omp requires atomic_default_mem_order(seq_cst)
27 
28 #endif
29