2 ! { dg-options "-std=f2008" }
4 ! Check for label mismatch errors with BLOCK statements.
10 END BLOCK wrongname ! { dg-error "Syntax error" }
13 END BLOCK wrongname ! { dg-error "Expected label 'myname'" }
16 END BLOCK ! { dg-error "Expected block name of 'myname2'" }
17 END PROGRAM main ! { dg-error "Expecting END BLOCK" }
18 ! { dg-excess-errors "Unexpected end of file" }