gcc/testsuite/c-c++-common/gomp/attrs-unroll-inner-3.c
raw| 1 | /* { dg-do compile { target { c || c++11 } } } */ |
| 2 | /* { dg-additional-options "-std=c23" { target c } } */ |
| 3 | |
| 4 | /* Test that omp::sequence is handled properly in a loop nest, but that |
| 5 | invalid attribute specifiers are rejected. */ |
| 6 | |
| 7 | extern void dummy (int); |
| 8 | |
| 9 | void |
| 10 | test1 (void) |
| 11 | { |
| 12 | [[omp::directive (target parallel for collapse(2))]] |
| 13 | for (int i = -300; i != 100; ++i) |
| 14 | [[omp::sequence (directive (unroll, partial))]] |
| 15 | for (int j = 0; j != 100; ++j) |
| 16 | dummy (i); |
| 17 | } |