xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / task-in-explicit-2.c
blob44df5967b69209943315a91c86afe2bdca9b2624
1 /* { dg-do run } */
3 #include <omp.h>
4 #include <stdlib.h>
6 int
7 main ()
9 #pragma omp task
11 if (!omp_in_explicit_task ())
12 abort ();
13 #pragma omp task
15 if (!omp_in_explicit_task ())
16 abort ();
17 #pragma omp target nowait
18 if (omp_in_explicit_task ())
19 abort ();
20 if (!omp_in_explicit_task ())
21 abort ();
22 #pragma omp taskwait
25 return 0;