gcc/testsuite/g++.dg/gomp/attrs-17.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | [[omp::directive (assumes contains (simd))]]; |
| 4 | [[omp::directive (assumes contains (error))]]; |
| 5 | [[omp::directive (assumes, contains (simd))]]; |
| 6 | |
| 7 | void |
| 8 | foo (int i, int *a) |
| 9 | { |
| 10 | [[omp::directive (simd)]] |
| 11 | for (int j = 0; j < i; j++) |
| 12 | a[j] = j; |
| 13 | if (i >= 32) |
| 14 | { |
| 15 | [[omp::directive (error at (execution) message ("Should not happen"))]]; |
| 16 | } |
| 17 | } |