aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.3/gcc/testsuite/gfortran.dg/whole_file_16.f90
blob: 048350f1d7e3a2e376de795adee8430428870451 (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 "must have an explicit interface" }
end program main

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