blob: a506473ad95d3a766a14535d0f030d86dd5c0e62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
! { dg-do compile }
!
! PR fortran/49397
!
! Valid per IR F08/0060 and F2008Corr2, C729
!
Program m5
Print *,f()
Contains
Subroutine s
Procedure(Real),Pointer :: p
Print *,g()
p => f ! (1)
Print *,p()
p => g ! (2)
Print *,p()
End Subroutine
End Program
Function f()
f = 1
End Function
Function g()
g = 2
End Function
|