sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / task-7.c
blob0307575f978bcade044459c59388a93257cb334c
1 /* { dg-do run } */
3 #include <omp.h>
4 #include <stdlib.h>
6 int
7 main ()
9 #pragma omp task final (1)
11 if (!omp_in_final ())
12 abort ();
13 #pragma omp task
15 if (!omp_in_final ())
16 abort ();
17 #pragma omp target nowait
18 if (omp_in_final ())
19 abort ();
20 if (!omp_in_final ())
21 abort ();
22 #pragma omp taskwait
25 return 0;