aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/class_31.f90
blob: eddf13f1beae498be3c5fa8b5535ad4ada02dd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
!
! PR fortran/46413
!
type t
  integer :: ii =5
end type t
class(t), allocatable :: x
allocate (t :: x)

print *,x  ! { dg-error "Data transfer element at .1. cannot be polymorphic" }
end