OSDN Git Service

2010-03-17 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / array_constructor_type_13.f90
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 !
4 ! PR fortran/27997
5 !
6 ! Array constructor with typespec
7 ! should be rejected for Fortran 95.
8 !
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