2 ! { dg-options "-std=f2008 -fcoarray=single" }
5 ! Check for compile-time errors with non-loop EXITs.
7 ! Contributed by Daniel Kraft, d@domob.eu.
13 ! Must not exit CRITICAL.
15 EXIT mycrit ! { dg-error "leaves CRITICAL" }
18 ! CYCLE is only allowed for loops!
20 CYCLE myblock ! { dg-error "is not applicable to non-loop construct 'myblock'" }
24 ! Thanks to Mikael Morin, mikael.morin@sfr.fr.
25 baz: WHERE ([ .true., .true. ])
27 EXIT baz ! { dg-error "is not applicable to construct 'baz'" }