blob: 485e76f66486af414f7750f59eed45837521639c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
! { dg-do compile }
!
! PR 51081: [F03] Proc-pointer assignment: Rejects valid internal proc
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
procedure(), pointer :: p1
procedure(real), pointer :: p2
p1 => int2
p2 => scale ! { dg-error "is invalid in procedure pointer assignment" }
contains
subroutine int2()
print *,"..."
end subroutine
end
|