Commit 4ea4bf9c by Tobias Burnus

Really add the new testsuite files missing from commit r207854

2014-02-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * gfortran.dg/proc_ptr_45.f90: New.
        * gfortran.dg/proc_ptr_46.f90: New.

From-SVN: r207855
parent ab1668f6
! { 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
! { dg-do compile }
!
! PR fortran/49397
!
! Invalid per IR F08/0060 and F2008Corr2, C729
!
! Print *,f() ! << Valid when uncommented
Contains
Subroutine s
Procedure(Real),Pointer :: p
p => f ! { dg-error "Procedure pointer target 'f' at .1. must be either an intrinsic, host or use associated, referenced or have the EXTERNAL attribute" }
End Subroutine
End
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment