2 ! { dg-options "-std=f2008 -fall-intrinsics" }
4 ! Check for correct placement (on the stack) of local variables with BLOCK
5 ! and recursive container procedures.
7 RECURSIVE SUBROUTINE myproc (i)
8 INTEGER, INTENT(IN) :: i
9 ! Wrap the block up in some other construct so we see this doesn't mess
15 IF (i > 0) CALL myproc (i - 1)
16 IF (x /= i) CALL abort ()