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
2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr17141-1.c
blob
e33571da156cee017f4bc4e5a222ecbc7681253e
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-forwprop1" } */
3
4
struct
A
{
int
i
; };
5
int
6
foo
(
struct
A
*
locp
,
int
str
)
7
{
8
int
T355
, *
T356
;
9
T356
= &
locp
->
i
;
10
*
T356
=
str
;
11
return
locp
->
i
;
12
}
13
14
/* We should have propagated &locp->i into its dereference. */
15
16
/* { dg-final { scan-tree-dump "locp_\[^\\n\]* =" "forwprop1" } } */