2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_type_13.f90
blobeab35ccd191f387c0a4b0b0fdf2971fb30cccf42
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 )) call abort()
14 end