Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gfortran.dg / impure_3.f90
blob1c0d44428f4504b475ac259aa06e161871621cb2
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 ! PR fortran/45197
5 ! Check that IMPURE gets rejected without F2008.
7 ! Contributed by Daniel Kraft, d@domob.eu.
9 IMPURE SUBROUTINE foobar () ! { dg-error "Fortran 2008" }
11 IMPURE ELEMENTAL FUNCTION xyz () ! { dg-error "Fortran 2008" }