2 ! { dg-options "-std=f2008" }
5 ! Check for errors with IMPURE.
7 ! Contributed by Daniel Kraft, d@domob.eu.
14 IMPURE PURE SUBROUTINE foobar () ! { dg-error "must not appear both" }
16 PURE ELEMENTAL IMPURE FUNCTION xyz () ! { dg-error "must not appear both" }
18 IMPURE ELEMENTAL SUBROUTINE mysub ()
21 PURE SUBROUTINE purified ()
22 CALL mysub () ! { dg-error "is not PURE" }
23 END SUBROUTINE purified