sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / pr104952-1.c
bloba3bfb1e77df28c0090b633d3fba55282e2979af9
1 #define N 32
3 static char arr[N];
5 int
6 main (void)
8 unsigned int result = 0;
10 for (unsigned int i = 0; i < N; ++i)
11 arr[i] = 0;
13 arr[5] = 42;
15 #pragma omp target map(tofrom:result) map(to:arr)
16 #pragma omp simd reduction(||: result)
17 for (unsigned int i = 0; i < N; ++i)
18 result = result || arr[i];
20 if (result != 1)
21 __builtin_abort ();
23 return 0;