1! { dg-do compile }
2! { dg-options "-std=f95" }
3
4! PR fortran/45197
5! Check that IMPURE gets rejected without F2008.
6
7! Contributed by Daniel Kraft, d@domob.eu.
8
9IMPURE SUBROUTINE foobar () ! { dg-error "Fortran 2008" }
10
11IMPURE ELEMENTAL FUNCTION xyz () ! { dg-error "Fortran 2008" }
12