1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
4 #if !__has_attribute(omp::directive)
5 #error omp::directive not supported in C/C++
8 #if !__has_attribute(omp::sequence)
9 #error omp::sequence not supported in C/C++
12 #if !__has_attribute(omp::decl)
13 #error omp::decl not supported in C/C++
16 #if __has_attribute(omp::unknown)
17 #error omp::unknown supported
20 #if !__has_cpp_attribute(omp::directive)
21 #error omp::directive not supported in C/C++
24 #if !__has_cpp_attribute(omp::sequence)
25 #error omp::sequence not supported in C/C++
28 #if !__has_cpp_attribute(omp::decl)
29 #error omp::sequence not supported in C/C++
32 #if __has_cpp_attribute(omp::unknown)
33 #error omp::unknown supported
36 #if !__has_attribute(__omp__::__directive__)
37 #error __omp__::__directive__ not supported in C/C++
40 #if !__has_attribute(__omp__::__sequence__)
41 #error __omp__::__sequence__ not supported in C/C++
44 #if !__has_attribute(__omp__::__decl__)
45 #error __omp__::__decl__ not supported in C/C++
48 #if __has_attribute(__omp__::__unknown__)
49 #error __omp__::__unknown__ supported
52 #if !__has_cpp_attribute(__omp__::__directive__)
53 #error __omp__::__directive__ not supported in C/C++
56 #if !__has_cpp_attribute(__omp__::__sequence__)
57 #error __omp__::__sequence__ not supported in C/C++
60 #if !__has_cpp_attribute(__omp__::__decl__)
61 #error __omp__::__decl__ not supported in C/C++
64 #if __has_cpp_attribute(__omp__::__unknown__)
65 #error __omp__::__unknown__ supported
68 #if !__has_attribute(omp::__directive__)
69 #error omp::__directive__ not supported in C/C++
72 #if !__has_attribute(__omp__::sequence)
73 #error __omp__::sequence not supported in C/C++
76 #if !__has_attribute(omp::__decl__)
77 #error omp::__decl__ not supported in C/C++
80 #if __has_attribute(omp::__unknown__)
81 #error omp::__unknown__ supported
84 #if !__has_cpp_attribute(__omp__::directive)
85 #error __omp__::directive not supported in C/C++
88 #if !__has_cpp_attribute(omp::__sequence__)
89 #error omp::__sequence__ not supported in C/C++
92 #if !__has_cpp_attribute(__omp__::decl)
93 #error __omp__::decl not supported in C/C++
96 #if __has_cpp_attribute(__omp__::unknown)
97 #error __omp__::unknown supported