modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / block_4.f08
blob3ff52b0a098abec34d9566528a2527d6c741fdd8
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008" }
4 ! Check for label mismatch errors with BLOCK statements.
6 PROGRAM main
7   IMPLICIT NONE
9   BLOCK 
10   END BLOCK wrongname ! { dg-error "Syntax error" }
12   myname: BLOCK
13   END BLOCK wrongname ! { dg-error "Expected label 'myname'" }
15   myname2: BLOCK
16   END BLOCK ! { dg-error "Expected block name of 'myname2'" }
17 END PROGRAM main ! { dg-error "Expecting END BLOCK" }
18 ! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }