view gcc/testsuite/gfortran.dg/func_decl_3.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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