| 1 |
module m3 |
| 2 |
use iso_c_binding, only: c_ptr |
| 3 |
implicit none |
| 4 |
interface |
| 5 |
subroutine f(x,y,z) |
| 6 |
import |
| 7 |
type(c_ptr) :: x, y, z |
| 8 |
end subroutine |
| 9 |
subroutine f0(x,y,z) |
| 10 |
import |
| 11 |
type(c_ptr) :: x, y, z |
| 12 |
!$omp declare variant(f) adjust_args ( need_device_addr : -1 : omp_num_args + 10 ) & ! { dg-error "64: For range-based 'adjust_args', a constant positive scalar integer expression is required" } |
| 13 |
!$omp& adjust_args ( nothing : 1+1) & ! { dg-error "expected ':'" } |
| 14 |
!$omp& match ( construct = { dispatch } ) |
| 15 |
end subroutine |
| 16 |
end interface |
| 17 |
end module m3 |
| 18 |
|
| 19 |
module m4 |
| 20 |
use iso_c_binding, only: c_ptr |
| 21 |
implicit none |
| 22 |
interface |
| 23 |
subroutine f(x,y,z) |
| 24 |
import |
| 25 |
type(c_ptr) :: x, y, z |
| 26 |
end subroutine |
| 27 |
subroutine f0(x,y,z) |
| 28 |
import |
| 29 |
type(c_ptr) :: x, y, z |
| 30 |
!$omp declare variant(f) adjust_args ( need_device_addr : 3.3 ) & ! { dg-error "Expected dummy parameter name or a positive integer" } |
| 31 |
!$omp& adjust_args ( nothing : 1 : y ) & ! { dg-error "For range-based 'adjust_args', a constant positive scalar integer expression is required" } |
| 32 |
!$omp& match ( construct = { dispatch } ) |
| 33 |
end subroutine |
| 34 |
end interface |
| 35 |
end module m4 |