Retro68/gcc/gcc/testsuite/gfortran.dg/impure_3.f90
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

12 lines
284 B
Fortran

! { dg-do compile }
! { dg-options "-std=f95" }
! PR fortran/45197
! Check that IMPURE gets rejected without F2008.
! Contributed by Daniel Kraft, d@domob.eu.
IMPURE SUBROUTINE foobar () ! { dg-error "Fortran 2008" }
IMPURE ELEMENTAL FUNCTION xyz () ! { dg-error "Fortran 2008" }