lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_38.f90
blob9387b6b8fea24e0d169487c1e06b63d66cd60323
1 ! { dg-do compile }
3 ! PR 54387: [F03] Wrongly accepts non-proc result variable on the RHS of a proc-pointer assignment
5 ! Contributed by James Van Buskirk
7 integer function foo()
8 procedure(), pointer :: i
9 i => foo ! { dg-error "is invalid as proc-target in procedure pointer assignment" }
10 end
12 recursive function bar() result (res)
13 integer :: res
14 procedure(), pointer :: j
15 j => bar
16 end