gcc/testsuite/c-c++-common/gomp/attrs-unroll-inner-4.c
raw| 1 | /* { dg-do compile { target { c || c++11 } } } */ |
| 2 | /* { dg-additional-options "-std=c23" { target c } } */ |
| 3 | |
| 4 | extern void dummy (int); |
| 5 | |
| 6 | void |
| 7 | test (void) |
| 8 | { |
| 9 | [[omp::directive (target parallel for collapse(2))]] |
| 10 | for (int i = -300; i != 100; ++i) |
| 11 | [[omp::directive (tile sizes(2, 3))]] |
| 12 | for (int j = 0; j != 100; ++j) /* { dg-error "not enough nested loops" } */ |
| 13 | dummy (i); |
| 14 | } |