blob: f91d4dd50c6266b3d2df01eea8a34664a0e37c2a [file] [log] [blame]
/* { dg-do compile { target { c || c++11 } } } */
/* { dg-additional-options "-std=c23" { target c } } */
/* Test that omp::sequence is handled properly in a loop nest, but that
invalid attribute specifiers are rejected. */
extern void dummy (int);
void
test1 (void)
{
[[omp::directive (target parallel for collapse(2))]]
for (int i = -300; i != 100; ++i)
[[omp::sequence (directive (unroll, partial))]]
for (int j = 0; j != 100; ++j)
dummy (i);
}