RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_type_13.f90
bloba6a64c0e825ccb4bb2a916977184e9cbadc07d00
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 ! PR fortran/27997
6 ! Array constructor with typespec
7 ! should be rejected for Fortran 95.
9 real :: a(3)
10 integer :: j(3)
11 a = (/ integer :: 1.4, 2.2, 3.33 /) ! { dg-error "Fortran 2003" }
12 j = (/ 1.4, 2.2, 3.33 /)
13 if( any(a /= j )) STOP 1
14 end