| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fopenmp" } */ |
| 3 |
|
| 4 |
#if !__has_attribute(omp::directive) |
| 5 |
#error omp::directive not supported in C/C++ |
| 6 |
#endif |
| 7 |
|
| 8 |
#if !__has_attribute(omp::sequence) |
| 9 |
#error omp::sequence not supported in C/C++ |
| 10 |
#endif |
| 11 |
|
| 12 |
#if !__has_attribute(omp::decl) |
| 13 |
#error omp::decl not supported in C/C++ |
| 14 |
#endif |
| 15 |
|
| 16 |
#if __has_attribute(omp::unknown) |
| 17 |
#error omp::unknown supported |
| 18 |
#endif |
| 19 |
|
| 20 |
#if !__has_cpp_attribute(omp::directive) |
| 21 |
#error omp::directive not supported in C/C++ |
| 22 |
#endif |
| 23 |
|
| 24 |
#if !__has_cpp_attribute(omp::sequence) |
| 25 |
#error omp::sequence not supported in C/C++ |
| 26 |
#endif |
| 27 |
|
| 28 |
#if !__has_cpp_attribute(omp::decl) |
| 29 |
#error omp::sequence not supported in C/C++ |
| 30 |
#endif |
| 31 |
|
| 32 |
#if __has_cpp_attribute(omp::unknown) |
| 33 |
#error omp::unknown supported |
| 34 |
#endif |
| 35 |
|
| 36 |
#if !__has_attribute(__omp__::__directive__) |
| 37 |
#error __omp__::__directive__ not supported in C/C++ |
| 38 |
#endif |
| 39 |
|
| 40 |
#if !__has_attribute(__omp__::__sequence__) |
| 41 |
#error __omp__::__sequence__ not supported in C/C++ |
| 42 |
#endif |
| 43 |
|
| 44 |
#if !__has_attribute(__omp__::__decl__) |
| 45 |
#error __omp__::__decl__ not supported in C/C++ |
| 46 |
#endif |
| 47 |
|
| 48 |
#if __has_attribute(__omp__::__unknown__) |
| 49 |
#error __omp__::__unknown__ supported |
| 50 |
#endif |
| 51 |
|
| 52 |
#if !__has_cpp_attribute(__omp__::__directive__) |
| 53 |
#error __omp__::__directive__ not supported in C/C++ |
| 54 |
#endif |
| 55 |
|
| 56 |
#if !__has_cpp_attribute(__omp__::__sequence__) |
| 57 |
#error __omp__::__sequence__ not supported in C/C++ |
| 58 |
#endif |
| 59 |
|
| 60 |
#if !__has_cpp_attribute(__omp__::__decl__) |
| 61 |
#error __omp__::__decl__ not supported in C/C++ |
| 62 |
#endif |
| 63 |
|
| 64 |
#if __has_cpp_attribute(__omp__::__unknown__) |
| 65 |
#error __omp__::__unknown__ supported |
| 66 |
#endif |
| 67 |
|
| 68 |
#if !__has_attribute(omp::__directive__) |
| 69 |
#error omp::__directive__ not supported in C/C++ |
| 70 |
#endif |
| 71 |
|
| 72 |
#if !__has_attribute(__omp__::sequence) |
| 73 |
#error __omp__::sequence not supported in C/C++ |
| 74 |
#endif |
| 75 |
|
| 76 |
#if !__has_attribute(omp::__decl__) |
| 77 |
#error omp::__decl__ not supported in C/C++ |
| 78 |
#endif |
| 79 |
|
| 80 |
#if __has_attribute(omp::__unknown__) |
| 81 |
#error omp::__unknown__ supported |
| 82 |
#endif |
| 83 |
|
| 84 |
#if !__has_cpp_attribute(__omp__::directive) |
| 85 |
#error __omp__::directive not supported in C/C++ |
| 86 |
#endif |
| 87 |
|
| 88 |
#if !__has_cpp_attribute(omp::__sequence__) |
| 89 |
#error omp::__sequence__ not supported in C/C++ |
| 90 |
#endif |
| 91 |
|
| 92 |
#if !__has_cpp_attribute(__omp__::decl) |
| 93 |
#error __omp__::decl not supported in C/C++ |
| 94 |
#endif |
| 95 |
|
| 96 |
#if __has_cpp_attribute(__omp__::unknown) |
| 97 |
#error __omp__::unknown supported |
| 98 |
#endif |