2 ! { dg-options "-std=f2008 -fall-intrinsics" }
4 ! Basic Fortran 2008 BLOCK construct test.
16 ! Block without local variables but name.
18 IF (i /= 42) CALL abort ()
21 IF (i /= 5) CALL abort ()
23 ! Named block with local variable and nested block.
28 IF (i /= -1) CALL abort ()
31 IF (i /= -2) CALL abort ()
32 END BLOCK myblock ! Matching end-label.
33 IF (i /= 5) CALL abort ()