2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_stat_2.f90
blob7cf6d659ea29bd83e3dcfe6eff18fbe186365566
1 ! { dg-do compile }
2 ! PR 41197
3 program main
4 integer, dimension (4) :: ier = 0
5 character(len=30), dimension(2) :: er
6 integer, dimension (:), allocatable :: a
7 allocate (a (16), stat = ier) ! { dg-error "must be a scalar INTEGER" }
8 allocate (a (14), stat=ier(1),errmsg=er) ! { dg-error "must be a scalar CHARACTER" }
9 end