fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_16.f90
blob2a17d0b1dcb348539fe6bbd2a58966188308de6a
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 "must have an explicit interface" }
9 end program main
11 subroutine foo(a)
12 real, dimension(:) :: a
13 end subroutine foo