diff options
Diffstat (limited to 'test/OpenMP/requires_relaxed_print.cpp')
-rw-r--r-- | test/OpenMP/requires_relaxed_print.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/OpenMP/requires_relaxed_print.cpp b/test/OpenMP/requires_relaxed_print.cpp new file mode 100644 index 0000000000000..98786e56605f6 --- /dev/null +++ b/test/OpenMP/requires_relaxed_print.cpp @@ -0,0 +1,16 @@ +// 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 atomic_default_mem_order(relaxed) +// CHECK:#pragma omp requires atomic_default_mem_order(relaxed) + +#endif |