OSDN Git Service

2010-06-07 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / array_constructor_type_3.f03
1 ! { dg-do run }
2 !
3 ! PR fortran/27997
4 !
5 ! Test empty array constructor with typespec.
6 !
7 PROGRAM test
8   IMPLICIT NONE
9   INTEGER :: array(2)
10
11   array = (/ 5, [INTEGER ::], 6 /)
12
13   IF (array(1) /= 5 .OR. array(2) /= 6) THEN
14       CALL abort()
15   END IF
16 END PROGRAM test