| 1 |
! PR fortran/85701 |
| 2 |
! { dg-do compile } |
| 3 |
|
| 4 |
subroutine s1 |
| 5 |
!$acc declare copy(s1) ! { dg-error "is not a variable" } |
| 6 |
end |
| 7 |
|
| 8 |
subroutine s2 |
| 9 |
!$acc declare present(s2) ! { dg-error "is not a variable" } |
| 10 |
end |
| 11 |
|
| 12 |
function f1 () result(res) |
| 13 |
!$acc declare copy(f1) ! { dg-error "is not a variable" } |
| 14 |
end |
| 15 |
|
| 16 |
function f2 () result(res) |
| 17 |
!$acc declare present(f2) ! { dg-error "is not a variable" } |
| 18 |
end |
| 19 |
|
| 20 |
program p |
| 21 |
!$acc declare copy(p) ! { dg-error "is not a variable" } |
| 22 |
end |
| 23 |
|