d: Merge upstream dmd, druntime c8ae4adb2e, phobos 792c8b7c1.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr95981.f90
blob7da6e9bd3dd52a6811fa79fc2bba96b56d184651
1 ! { dg-do compile }
3 program p
4 type t
5 end type
6 class(t) :: x(:) ! { dg-error "must be dummy, allocatable or pointer" }
7 type(t) :: y(size(x,1)) ! { dg-error "must be constant of INTEGER type" }
8 end