1 // RUN: %clang_cc1 -fopenmp -fsyntax-only -verify -DSUPPORTED=1 %s
2 // RUN: %clang_cc1 -fopenmp -fsyntax-only -verify -DSUPPORTED=1 -x c -std=c2x %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -DSUPPORTED=0 %s
4 // RUN: %clang_cc1 -fsyntax-only -verify -DSUPPORTED=0 -x c -std=c2x %s
5 // RUN: %clang_cc1 -fopenmp -fsyntax-only -verify -DSUPPORTED=1 %s
6 // RUN: %clang_cc1 -fopenmp -fsyntax-only -verify -DSUPPORTED=1 -x c -std=c2x %s
7 // expected-no-diagnostics
10 #error "Someone messed up a RUN line"
14 #if __has_cpp_attribute(omp::sequence) != SUPPORTED
15 #error "No idea what you're talking about"
18 #if __has_cpp_attribute(omp::directive) != SUPPORTED
19 #error "No idea what you're talking about"
22 #if __has_cpp_attribute(omp::totally_bogus)
23 #error "No idea what you're talking about"
28 #if __has_c_attribute(omp::sequence) != SUPPORTED
29 #error "No idea what you're talking about"
32 #if __has_c_attribute(omp::directive) != SUPPORTED
33 #error "No idea what you're talking about"
36 #if __has_c_attribute(omp::totally_bogus)
37 #error "No idea what you're talking about"