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