2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_class_2.f90
blob733dca62b99b783886e3c00875521b678906201f
1 ! { dg-do compile }
3 ! PR 52552: [OOP] ICE when trying to allocate non-allocatable object giving a dynamic type
5 ! Contributed by <gccbgz.lionm@xoxy.net>
8 type t
9 integer :: i
10 end type
12 class(t) :: o ! { dg-error "must be dummy, allocatable or pointer" }
14 allocate(t::o) ! { dg-error "is neither a data pointer nor an allocatable variable" }
16 end