blob: 43746b669ffd41160276b79e993ca4c11380ef0f [file] [log] [blame]
/* { dg-do compile { target { c || c++11 } } } */
/* { dg-options "-fopenmp -std=c23" { target { c } } } */
#define N 256
void
f (void)
{
int i;
int a[N];
[[omp::directive (metadirective
when( device={kind(nohost)}: nothing )
when( device={arch("nvptx")}: nothing)
default( parallel for))]]
for (i = 0; i < N; i++)
a[i] = i;
}