repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pointer_target_1.f90
blob
d113072bc4d177abbf364ec49e1d2c595ec45fcf
1
! { dg-do run }
2
!
3
! TARGET actual to POINTER dummy with INTENT(IN)
4
!
5
program
test
6
implicit none
7
integer
,
target
::
a
8
a
=
66
9
call
foo
(
a
)
10
if
(
a
/=
647
)
STOP
1
11
contains
12
subroutine
foo
(
p
)
13
integer
,
pointer
,
intent
(
in
) ::
p
14
if
(
a
/=
66
)
STOP
2
15
if
(
p
/=
66
)
STOP
3
16
p
=
647
17
if
(
p
/=
647
)
STOP
4
18
if
(
a
/=
647
)
STOP
5
19
end subroutine
foo
20
end program
test