URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_function_actual_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-std=legacy" }!! Tests the fix for PR31209, in which an ICE would result because! the reference to the pointer function f would be indirected, as! if it were the result that is being passed.!! COntributed by Joost VandeVondele <jv244@cam.ac.uk>!FUNCTION F() RESULT(RES)INTEGER, POINTER :: RESALLOCATE(RES)RES=2END FUNCTION FSUBROUTINE S1(f,*,*)INTERFACEFUNCTION F() RESULT(RES)INTEGER, POINTER :: RESEND FUNCTION FEND INTERFACERETURN F()END SUBROUTINEPROGRAM TESTINTERFACEFUNCTION F() RESULT(RES)INTEGER, POINTER :: RESEND FUNCTION FEND INTERFACEINTERFACESUBROUTINE S1(f,*,*)INTERFACEFUNCTION F() RESULT(RES)INTEGER, POINTER :: RESEND FUNCTION FEND INTERFACEEND SUBROUTINEEND INTERFACECALL S1(F,*1,*2)1 CONTINUECALL ABORT()GOTO 32 CONTINUE3 CONTINUEEND
