summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/func_decl_3.f90
blob: 4e458f47d88e8120e9ad1fcbb6431d4b0549440d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! Tests the fix for PR24325 in which the lack of any declaration
! that foo is a function or even a procedure was not detected.
!
! Contributed by Jakub Jelinek <jakub@gcc.gnu.org>
!
  integer foo
  call test
contains
  subroutine test
    integer :: i
    i = foo () ! { dg-error "is not a function" }
  end subroutine test
end