2 ! { dg-options "-std=legacy" }
4 ! Tests the fix for PR31209, in which an ICE would result because
5 ! the reference to the pointer function f would be indirected, as
6 ! if it were the result that is being passed.
8 ! COntributed by Joost VandeVondele <jv244@cam.ac.uk>
10 FUNCTION F() RESULT(RES
)
11 INTEGER, POINTER :: RES
18 FUNCTION F() RESULT(RES
)
19 INTEGER, POINTER :: RES
27 FUNCTION F() RESULT(RES
)
28 INTEGER, POINTER :: RES
36 FUNCTION F() RESULT(RES
)
37 INTEGER, POINTER :: RES