PR target/84226
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / pr83046.c
blob90dcb704fb39f200f4e97952d9ceeec79fa18708
1 /* { dg-do link } */
3 #define N 100
5 int
6 main ()
8 int a[N];
9 int i, x;
10 int c;
12 c = 1;
13 #pragma omp target
14 for (i = 0; i < 100; i++)
15 a[i] = 0;
17 if (c)
18 __builtin_unreachable ();
20 #pragma omp target
21 for (i = 0; i < 100; i++)
22 a[i] = 1;
24 return 0;