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
2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-19.c
blob
ab4182246a35473d0177afd15f31eed8ea263437
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
4
struct
f
{
int
i
; };
5
int
g
()
6
{
7
struct
f a
, *
a1
;
8
int
*
i
;
9
a
.
i
=
1
;
10
a1
= &
a
;
11
i
= &
a1
->
i
;
12
return
*
i
;
/* This should be turned into a.i */
13
}
14
15
/* { dg-final { scan-tree-dump "= a.i;" "ccp1" } } */
16
/* { dg-final { cleanup-tree-dump "ccp1" } } */