AVR: Assert minimal required bit width of section_common::flags.
[gcc.git] / libgomp / testsuite / libgomp.c / pr36802-1.c
blob4ed5e12769b14980c171c5ccf874f4350ea7ec5a
1 /* PR middle-end/36802 */
3 extern void abort (void);
5 int
6 foo (int k)
8 int i = 0;
9 #pragma omp parallel
10 #pragma omp single
12 if (!k)
14 int j;
15 for (j = 0; j < 10; j++)
16 #pragma omp task
17 if (j == 4)
18 i++;
20 else
21 i++;
23 return i;
26 int
27 main (void)
29 if (foo (0) != 1)
30 abort ();
31 if (foo (1) != 1)
32 abort ();
33 return 0;