comparison gcc/testsuite/gfortran.dg/initialization_13.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 !
4 ! PR fortran/33178
5 !
6 ! Initialization expressions:
7 ! Fortran 95: Elemental functions w/ integer/character arguments
8 ! Fortran 2003: restriction lifted
9 !
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