PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / data_array_3.f90
blobd9de791b40534d4fc19cd02694437df53213800f
1 ! { dg-do compile }
2 ! PR32928 DATA statement with array element as initializer is rejected
3 integer, parameter,dimension(4) :: myint = [ 4,3,2,1 ]
4 integer :: a(5),b
5 data a(1:2) / myint(b), myint(2) / ! { dg-error "Invalid initializer" }
6 end