contrib: Fix 2 bugs in check-params-in-docs.py
[gcc.git] / libgomp / testsuite / libgomp.c / target-3.c
blobec818d24f6912e24082fb76ff03e1ca8c98e117c
1 #include <omp.h>
2 #include <stdlib.h>
4 int
5 main ()
7 if (omp_get_level ())
8 abort ();
9 #pragma omp target if (0)
10 if (omp_get_level ())
11 abort ();
12 #pragma omp target if (0)
13 #pragma omp teams
14 #pragma omp distribute dist_schedule(static,1)
15 for (int i = 0; i < 1; ++i)
16 if (omp_get_level ())
17 abort ();
18 return 0;