Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/attrs-metadirective-8.c

raw
1 /* { dg-do compile { target { c || c++11 } } } */
2 /* { dg-options "-fopenmp -std=c23" { target { c } } } */
3
4 #define N 256
5
6 void
7 f (void)
8 {
9 int i;
10 int a[N];
11
12 [[omp::directive (metadirective
13 when( device={kind(nohost)}: nothing )
14 when( device={arch("nvptx")}: nothing)
15 default( parallel for))]]
16 for (i = 0; i < N; i++)
17 a[i] = i;
18 }