diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/recursive_check_15.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/recursive_check_15.f90 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/recursive_check_15.f90 b/gcc/testsuite/gfortran.dg/recursive_check_15.f90 new file mode 100644 index 000000000..4e381804e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/recursive_check_15.f90 @@ -0,0 +1,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 + |