c: Introduce -Wmissing-parameter-name
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_stat_2.f90
bloba28a253604642650c19ed6a77e1fd49a4b1ebb99
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 "shall be a scalar default CHARACTER" }
9 end