| 1 |
! { dg-do compile } |
| 2 |
! { dg-additional-options "-fdump-tree-ompexp" } |
| 3 |
|
| 4 |
module main |
| 5 |
use iso_c_binding, only: c_ptr |
| 6 |
implicit none |
| 7 |
interface |
| 8 |
subroutine f2 (p) |
| 9 |
import :: c_ptr |
| 10 |
type(c_ptr), intent(out) :: p |
| 11 |
end subroutine |
| 12 |
end interface |
| 13 |
contains |
| 14 |
|
| 15 |
subroutine test () |
| 16 |
type(c_ptr) :: p |
| 17 |
|
| 18 |
!$omp dispatch |
| 19 |
! { dg-final { scan-tree-dump-not "__builtin_GOMP_task " "ompexp" } } |
| 20 |
call f2 (p) |
| 21 |
!$omp dispatch depend(inout: p) |
| 22 |
! { dg-final { scan-tree-dump-times "(D\.\[0-9]+)\\\[2] = &p;\[ \n]*__builtin_GOMP_taskwait_depend \\(&\\1\\);" 2 "ompexp" } } |
| 23 |
call f2 (p) |
| 24 |
end subroutine |
| 25 |
end module |
| 26 |
|