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}
8 #if __has_attribute(omp::sequence)
9 #error omp::sequence supported even when -fno-openmp{,-simd}
12 #if __has_attribute(omp::decl)
13 #error omp::decl supported even when -fno-openmp{,-simd}
16 #if __has_attribute(omp::unknown)
17 #error omp::unknown supported
20 #if __has_cpp_attribute(omp::directive)
21 #error omp::directive supported even when -fno-openmp{,-simd}
24 #if __has_cpp_attribute(omp::sequence)
25 #error omp::sequence supported even when -fno-openmp{,-simd}
28 #if __has_cpp_attribute(omp::decl)
29 #error omp::decl supported even when -fno-openmp{,-simd}
32 #if __has_cpp_attribute(omp::unknown)
33 #error omp::unknown supported
36 #if __has_attribute(__omp__::__directive__)
37 #error __omp__::__directive__ supported even when -fno-openmp{,-simd}
40 #if __has_attribute(__omp__::__sequence__)
41 #error __omp__::__sequence__ supported even when -fno-openmp{,-simd}
44 #if __has_attribute(__omp__::__decl__)
45 #error __omp__::__decl__ supported even when -fno-openmp{,-simd}
48 #if __has_attribute(__omp__::__unknown__)
49 #error __omp__::__unknown__ supported
52 #if __has_cpp_attribute(__omp__::__directive__)
53 #error __omp__::__directive__ supported even when -fno-openmp{,-simd}
56 #if __has_cpp_attribute(__omp__::__sequence__)
57 #error __omp__::__sequence__ supported even when -fno-openmp{,-simd}
60 #if __has_cpp_attribute(__omp__::__decl__)
61 #error __omp__::__decl__ supported even when -fno-openmp{,-simd}
64 #if __has_cpp_attribute(__omp__::__unknown__)
65 #error __omp__::__unknown__ supported
68 #if __has_attribute(omp::__directive__)
69 #error omp::__directive__ supported even when -fno-openmp{,-simd}
72 #if __has_attribute(__omp__::sequence)
73 #error __omp__::sequence supported even when -fno-openmp{,-simd}
76 #if __has_attribute(omp::__decl__)
77 #error omp::__decl__ supported even when -fno-openmp{,-simd}
80 #if __has_attribute(omp::__unknown__)
81 #error omp::__unknown__ supported
84 #if __has_cpp_attribute(__omp__::directive)
85 #error __omp__::directive supported even when -fno-openmp{,-simd}
88 #if __has_cpp_attribute(omp::__sequence__)
89 #error omp::__sequence__ supported even when -fno-openmp{,-simd}
92 #if __has_cpp_attribute(__omp__::decl)
93 #error __omp__::decl supported even when -fno-openmp{,-simd}
96 #if __has_cpp_attribute(__omp__::unknown)
97 #error __omp__::unknown supported