2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_alloc_opt_5.f90
blobd7e3ea93f1bebc351278690d19dd9928b61d82b2
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 program a
5 implicit none
7 integer n
8 character(len=70) str
9 integer, allocatable :: i(:)
11 n = 42
12 allocate(i(4), source=n) ! { dg-error "Fortran 2003: SOURCE tag" }
13 allocate(i(4), stat=n, errmsg=str) ! { dg-error "Fortran 2003: ERRMSG tag" }
15 end program a