OSDN Git Service

2010-04-27 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / alloc_comp_std.f90
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 !
4 ! Check that we don't accept allocatable components for -std=f95 (PR 20541)
5 !
6 program main
7
8     type :: foo
9         integer, allocatable :: bar(:) ! { dg-error "ALLOCATABLE attribute" }
10
11         integer :: x ! Just to avoid "extra" error messages about empty type.
12     end type foo
13
14 end program main