PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / block_6.f08
blobc8cadb34d327b55727015e82e43c1590238bb81a
1 ! { dg-do run { xfail *-*-* } }
2 ! { dg-options "-std=f2008 " }
4 ! Check for correct scope of variables that are implicit typed within a BLOCK.
5 ! This is not yet implemented, thus XFAIL'ed the test.
7 PROGRAM main
8   IMPLICIT INTEGER(a-z)
10   BLOCK
11     ! a gets implicitly typed, but scope should not be limited to BLOCK.
12     a = 42
13   END BLOCK
15   ! Here, we should still access the same a that was set above.
16   IF (a /= 42) STOP 1
17 END PROGRAM main