PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_30.f03
blobfd07949537df461d9a0edb225bb5567df35b2ccc
1 ! { dg-do compile }
3 ! PR fortran/36492
4 ! Similar to the ICE-test, but now test for complaint about constant
5 ! specification expression.
7 implicit none
9 integer :: a = 42
10 type t
11   character (a) :: arr (1) = [ "a" ]
12   ! { dg-error "in the expression" "" { target *-*-* } .-1 }
13   ! { dg-error "specification expression" "" { target *-*-* } .-2 }
14 end type t
16 end