PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_comp_std.f90
blob2ca7f0ac369ef9a7fd1ac3f5df5fe9a00a7f84d5
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 ! Check that we don't accept allocatable components for -std=f95 (PR 20541)
6 program main
8 type :: foo
9 integer, allocatable :: bar(:) ! { dg-error "ALLOCATABLE attribute" }
11 integer :: x ! Just to avoid "extra" error messages about empty type.
12 end type foo
14 end program main