Retro68/gcc/gcc/testsuite/gfortran.dg/pr85687.f90
2018-12-28 16:30:48 +01:00

9 lines
208 B
Fortran

! { dg-do compile }
! PR fortran/85687
! Code original contributed by Gerhard Steinmetz gscfq at t-oline dot de
program p
type t
end type
print *, rank(t) ! { dg-error "must be a data object" }
end