summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/implicit_pure_2.f90
blob: 496e856e04ac394067ce9c41b39b1507c405d89a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
! PR 51502 - this was wrongly detected to be implicit pure.
module m
  integer :: i
contains
  subroutine foo(x)
    integer, intent(inout) :: x
    outer: block
      block
        i = 5
      end block
    end block outer
  end subroutine foo
end module m

! { dg-final { scan-module-absence "m" "IMPLICIT_PURE" } }
! { dg-final { cleanup-modules "m" } }