Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_16.f90
blobc45251e8c3ad0307f02915b5f86f56e2b840c565
1 ! { dg-do compile }
3 ! PR fortran/31346
5 program main
6 real, dimension(2) :: a
7 call foo(a) ! { dg-error "Explicit interface required" }
8 end program main
10 subroutine foo(a)
11 real, dimension(:) :: a
12 end subroutine foo