gcc/testsuite/gfortran.dg/gomp/adjust-args-13.f90
raw| 1 | ! This failed with a bogus: |
| 2 | ! 'must be of TYPE(C_PTR)' |
| 3 | module m |
| 4 | implicit none |
| 5 | contains |
| 6 | subroutine q() |
| 7 | end |
| 8 | subroutine one(x) |
| 9 | integer :: x |
| 10 | end |
| 11 | subroutine two(x) |
| 12 | !$omp declare variant(one) match(construct={dispatch}) adjust_args(nothing: x) |
| 13 | integer :: x |
| 14 | |
| 15 | !$omp dispatch |
| 16 | call q |
| 17 | end |
| 18 | end |