c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / attrs-1.c
blob5ac115812250f201208614e66ab947c22f30accf
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
4 #if !__has_attribute(omp::directive)
5 #error omp::directive not supported in C/C++
6 #endif
8 #if !__has_attribute(omp::sequence)
9 #error omp::sequence not supported in C/C++
10 #endif
12 #if !__has_attribute(omp::decl)
13 #error omp::decl not supported in C/C++
14 #endif
16 #if __has_attribute(omp::unknown)
17 #error omp::unknown supported
18 #endif
20 #if !__has_cpp_attribute(omp::directive)
21 #error omp::directive not supported in C/C++
22 #endif
24 #if !__has_cpp_attribute(omp::sequence)
25 #error omp::sequence not supported in C/C++
26 #endif
28 #if !__has_cpp_attribute(omp::decl)
29 #error omp::sequence not supported in C/C++
30 #endif
32 #if __has_cpp_attribute(omp::unknown)
33 #error omp::unknown supported
34 #endif
36 #if !__has_attribute(__omp__::__directive__)
37 #error __omp__::__directive__ not supported in C/C++
38 #endif
40 #if !__has_attribute(__omp__::__sequence__)
41 #error __omp__::__sequence__ not supported in C/C++
42 #endif
44 #if !__has_attribute(__omp__::__decl__)
45 #error __omp__::__decl__ not supported in C/C++
46 #endif
48 #if __has_attribute(__omp__::__unknown__)
49 #error __omp__::__unknown__ supported
50 #endif
52 #if !__has_cpp_attribute(__omp__::__directive__)
53 #error __omp__::__directive__ not supported in C/C++
54 #endif
56 #if !__has_cpp_attribute(__omp__::__sequence__)
57 #error __omp__::__sequence__ not supported in C/C++
58 #endif
60 #if !__has_cpp_attribute(__omp__::__decl__)
61 #error __omp__::__decl__ not supported in C/C++
62 #endif
64 #if __has_cpp_attribute(__omp__::__unknown__)
65 #error __omp__::__unknown__ supported
66 #endif
68 #if !__has_attribute(omp::__directive__)
69 #error omp::__directive__ not supported in C/C++
70 #endif
72 #if !__has_attribute(__omp__::sequence)
73 #error __omp__::sequence not supported in C/C++
74 #endif
76 #if !__has_attribute(omp::__decl__)
77 #error omp::__decl__ not supported in C/C++
78 #endif
80 #if __has_attribute(omp::__unknown__)
81 #error omp::__unknown__ supported
82 #endif
84 #if !__has_cpp_attribute(__omp__::directive)
85 #error __omp__::directive not supported in C/C++
86 #endif
88 #if !__has_cpp_attribute(omp::__sequence__)
89 #error omp::__sequence__ not supported in C/C++
90 #endif
92 #if !__has_cpp_attribute(__omp__::decl)
93 #error __omp__::decl not supported in C/C++
94 #endif
96 #if __has_cpp_attribute(__omp__::unknown)
97 #error __omp__::unknown supported
98 #endif