Debian Codegraph @

libgomp/testsuite/libgomp.fortran/task-in-explicit-2.f90

raw
1 ! { dg-do run }
2
3 program main
4 use omp_lib
5 implicit none
6 !$omp task
7 if (.not. omp_in_explicit_task ()) &
8 error stop
9 !$omp task
10 if (.not. omp_in_explicit_task ()) &
11 error stop
12 !$omp target nowait
13 if (omp_in_explicit_task ()) &
14 error stop
15 !$omp end target
16 if (.not. omp_in_explicit_task ()) &
17 error stop
18 !$omp taskwait
19 !$omp end task
20 !$omp end task
21 end