c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / attrs-3.c
blobec81b8301006d5eb73d6eccb075113849ff3d89d
1 /* { dg-do compile } */
2 /* { dg-options "-fno-openmp -fno-openmp-simd" } */
4 #if __has_attribute(omp::directive)
5 #error omp::directive supported even when -fno-openmp{,-simd}
6 #endif
8 #if __has_attribute(omp::sequence)
9 #error omp::sequence supported even when -fno-openmp{,-simd}
10 #endif
12 #if __has_attribute(omp::decl)
13 #error omp::decl supported even when -fno-openmp{,-simd}
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 supported even when -fno-openmp{,-simd}
22 #endif
24 #if __has_cpp_attribute(omp::sequence)
25 #error omp::sequence supported even when -fno-openmp{,-simd}
26 #endif
28 #if __has_cpp_attribute(omp::decl)
29 #error omp::decl supported even when -fno-openmp{,-simd}
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__ supported even when -fno-openmp{,-simd}
38 #endif
40 #if __has_attribute(__omp__::__sequence__)
41 #error __omp__::__sequence__ supported even when -fno-openmp{,-simd}
42 #endif
44 #if __has_attribute(__omp__::__decl__)
45 #error __omp__::__decl__ supported even when -fno-openmp{,-simd}
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__ supported even when -fno-openmp{,-simd}
54 #endif
56 #if __has_cpp_attribute(__omp__::__sequence__)
57 #error __omp__::__sequence__ supported even when -fno-openmp{,-simd}
58 #endif
60 #if __has_cpp_attribute(__omp__::__decl__)
61 #error __omp__::__decl__ supported even when -fno-openmp{,-simd}
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__ supported even when -fno-openmp{,-simd}
70 #endif
72 #if __has_attribute(__omp__::sequence)
73 #error __omp__::sequence supported even when -fno-openmp{,-simd}
74 #endif
76 #if __has_attribute(omp::__decl__)
77 #error omp::__decl__ supported even when -fno-openmp{,-simd}
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 supported even when -fno-openmp{,-simd}
86 #endif
88 #if __has_cpp_attribute(omp::__sequence__)
89 #error omp::__sequence__ supported even when -fno-openmp{,-simd}
90 #endif
92 #if __has_cpp_attribute(__omp__::decl)
93 #error __omp__::decl supported even when -fno-openmp{,-simd}
94 #endif
96 #if __has_cpp_attribute(__omp__::unknown)
97 #error __omp__::unknown supported
98 #endif