aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/PR10018.f90
blob: f1cf2676f854a5a180c18954ee6b653cf39c840e (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
!
subroutine foo(that)
  implicit none
  class(*),  target, intent(in)  :: this
  class(*), pointer, intent(out) :: that

  that => this
  return
end subroutine foo
! { dg-error "Symbol at \\\(1\\\) is not a DUMMY variable" "" { target "*-*-*" } 5 }