aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/whole_file_16.f90
blob: 6c910f47a2cda165b157662c90e8cb38b8de23d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-fwhole-file" }
!
! PR fortran/31346
!
program main
  real, dimension(2) :: a
  call foo(a)                ! { dg-error "Explicit interface required" }
end program main

subroutine foo(a)
  real, dimension(:) :: a
end subroutine foo