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
2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr46985.f90
blob
141641d29e9996e7c38c78a6a4a498e1cac05d39
1
! PR tree-optimization/46985
2
! { dg-do compile }
3
! { dg-options "-O -ftree-pre -ftree-vrp -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre" }
4
5
type
::
t
6
integer
::
i
7
end type
t
8
type
(
t
),
target
::
tar
(
2
) = (/
t
(
2
),
t
(
4
)/)
9
integer
,
pointer
::
ptr
(:)
10
ptr
=>
tar
%
i
11
call
foo
(
ptr
)
12
contains
13
subroutine
foo
(
arg
)
14
integer
::
arg
(:)
15
arg
=
arg
-
1
16
end subroutine
17
end