PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_16.f90
blob6c910f47a2cda165b157662c90e8cb38b8de23d0
1 ! { dg-do compile }
2 ! { dg-options "-fwhole-file" }
4 ! PR fortran/31346
6 program main
7 real, dimension(2) :: a
8 call foo(a) ! { dg-error "Explicit interface required" }
9 end program main
11 subroutine foo(a)
12 real, dimension(:) :: a
13 end subroutine foo