PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_10.f90
blob3400379b3154238e755e71d3d2f6595a48b3caa9
1 ! { dg-do run }
3 ! PR fortran/37253
5 ! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
7 module myMod
9 CONTAINS
11 real function proc3( arg1 )
12 integer :: arg1
13 proc3 = arg1+7
14 end function proc3
16 subroutine proc4( arg1 )
17 procedure(real), pointer :: arg1
18 if (arg1(0)/=7) STOP 1
19 end subroutine proc4
21 end module myMod
23 program myProg
24 use myMod
25 PROCEDURE (real), POINTER :: p => NULL()
26 p => proc3
27 call proc4( p )
28 end program myProg