PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_37.f90
blob485e76f66486af414f7750f59eed45837521639c
1 ! { dg-do compile }
3 ! PR 51081: [F03] Proc-pointer assignment: Rejects valid internal proc
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 procedure(), pointer :: p1
8 procedure(real), pointer :: p2
9 p1 => int2
10 p2 => scale ! { dg-error "is invalid in procedure pointer assignment" }
11 contains
12 subroutine int2()
13 print *,"..."
14 end subroutine
15 end