[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / data_array_2.f90
blob20777a2a796b80e0b735f47bca869adb4fdb5ec3
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)
5 data a(1:2) / myint(a(1)), myint(2) / ! { dg-error "Invalid initializer" }
6 end