summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/recursive_check_15.f90
blob: 4e381804ef299cb726d2ef0347af88fd527c3d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! PR41909 ICE with "call foo" in "program foo"
program test ! { dg-error "Global name" }
  implicit none
  call test()  ! { dg-error "" }
contains
  subroutine one(a)
    real, dimension(:,:), intent(inout), optional :: a
    call two(a)
  end subroutine one
end program test