blob: 159624cc74b136433dad32f8c90773bfdf20e71c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
! { dg-do run }
! Test detach clause, where a task fulfills its own completion event.
program task_detach_4
use omp_lib
integer (kind=omp_event_handle_kind) :: detach_event
integer :: x = 0
!$omp parallel
!$omp single
!$omp task detach (detach_event)
x = x + 1
call omp_fulfill_event (detach_event)
!$omp end task
!$omp end single
!$omp end parallel
if (x /= 1) stop 1
end program
|