PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_class_1.f90
blobd8f80ed5ec64e493871b60ebebb73d6450942bfc
1 ! { dg-do compile }
3 ! PR 47085: [OOP] Problem in allocate( SOURCE=) for polymorphic component
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 type :: t0
8 end type
9 class(t0) :: x ! { dg-error "must be dummy, allocatable or pointer" }
10 allocate(x) ! { dg-error "is neither a data pointer nor an allocatable variable" }
11 end