2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_13.f90
blob0cd6fa693f934eab21cac2fc5142222485e38cb9
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 ! PR fortran/33178
6 ! Initialization expressions:
7 ! Fortran 95: Elemental functions w/ integer/character arguments
8 ! Fortran 2003: restriction lifted
10 integer :: a = sign(1,1) ! Ok F95
11 real :: b = sign(1.,1.) ! { dg-error "Fortran 2003: Elemental function as initialization expression" }
12 end