blob: d113072bc4d177abbf364ec49e1d2c595ec45fcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
! { dg-do run }
!
! TARGET actual to POINTER dummy with INTENT(IN)
!
program test
implicit none
integer, target :: a
a = 66
call foo(a)
if (a /= 647) STOP 1
contains
subroutine foo(p)
integer, pointer, intent(in) :: p
if (a /= 66) STOP 2
if (p /= 66) STOP 3
p = 647
if (p /= 647) STOP 4
if (a /= 647) STOP 5
end subroutine foo
end program test
|