sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / pr32468.c
blobf20f660bfcb863722f5a73563b3c4042bae768b2
1 /* PR libgomp/32468 */
2 /* { dg-do run } */
4 #include <omp.h>
5 #include <stdlib.h>
7 int
8 main (void)
10 int res[2] = { -1, -1 };
11 omp_set_dynamic (0);
12 omp_set_num_threads (4);
13 #pragma omp parallel
15 #pragma omp sections
17 #pragma omp section
18 res[0] = omp_get_num_threads () != 4;
19 #pragma omp section
20 res[1] = omp_get_num_threads () != 4;
23 if (res[0] != 0 || res[1] != 0)
24 abort ();
25 return 0;