PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_comp_constraint_7.f90
blob35b8e1f029f3c910bd7751b8c51d765d2339758d
1 ! { dg-do compile }
2 ! { dg-options -std=f95 }
3 ! Check that we don't allow types with allocatable
4 program main
6 type :: foo
7 integer :: k
8 integer, allocatable :: x(:) ! { dg-error "Fortran 2003: ALLOCATABLE" }
9 end type foo
11 type :: bar
12 type(foo) :: x
13 end type bar
15 type(foo) :: a
16 type(bar) :: b
17 namelist /blah/ a
19 end program main