PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_46.f90
blob2c05f59d8a1ca329cdcf50883c72918516c8b852
1 ! { dg-do compile }
3 ! PR fortran/49397
5 ! Invalid per IR F08/0060 and F2008Corr2, C729
8 ! Print *,f() ! << Valid when uncommented
9 Contains
10 Subroutine s
11 Procedure(Real),Pointer :: p
12 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" }
13 End Subroutine
14 End