fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_decl_22.f90
blob40060061aef4c3a71b5fdc722c0659e947ee2159
1 ! { dg-do compile }
3 ! PR 37254: Reject valid PROCEDURE statement with implicit interface
5 ! Original test case by Dominique d'Humieres <dominiq@lps.ens.fr>
6 ! Modified by Janus Weil <janus@gcc.gnu.org>
8 real function proc3( arg1 )
9 integer :: arg1
10 proc3 = arg1+7
11 end function proc3
13 program myProg
14 PROCEDURE () :: proc3
15 call proc4( proc3 )
17 contains
19 subroutine proc4( arg1 )
20 PROCEDURE(real) :: arg1
21 print*, 'the func: ', arg1(0)
22 end subroutine proc4
24 end program myProg