PR testsuite/85483: Move aarch64/sve/vcond_1.c test to g++.dg/other/
[official-gcc.git] / libgomp / testsuite / libgomp.c / pr66133.c
blob90685cd81b66f04202a37f99023911bd838f2982
1 /* PR middle-end/66133 */
2 /* { dg-do run } */
4 #include <stdlib.h>
5 #include <unistd.h>
7 volatile int x;
9 __attribute__((noinline)) void
10 foo (void)
12 if (x == 0)
14 #pragma omp task
16 usleep (2000);
17 exit (0);
20 else
21 abort ();
24 int
25 main ()
27 #pragma omp parallel num_threads (2)
29 #pragma omp barrier
30 #pragma omp single
31 foo ();
33 exit (0);