| 1 |
! { dg-do compile } |
| 2 |
! |
| 3 |
subroutine foo(that) |
| 4 |
implicit none |
| 5 |
class(*), target, intent(in) :: this |
| 6 |
class(*), pointer, intent(out) :: that |
| 7 |
|
| 8 |
that => this |
| 9 |
return |
| 10 |
end subroutine foo |
| 11 |
! { dg-error "Symbol at \\\(1\\\) is not a DUMMY variable" "" { target "*-*-*" } 5 } |