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
c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-25.c
blob
b73f3f8a1438ac53de420d44442260ec7d0dc2a2
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
4
struct
X
{
int
i
; };
5
6
int
foo
(
int
x
)
7
{
8
struct
X a
;
9
struct
X b
;
10
struct
X
*
p
;
11
a
.
i
=
1
;
12
b
.
i
=
2
;
13
if
(
x
)
14
p
= &
a
;
15
else
16
p
= &
b
;
17
return
p
->
i
;
18
}
19
20
/* We should eliminate the load from p for a PHI node with values 1 and 2. */
21
22
/* { dg-final { scan-tree-dump "Eliminated: 1" "pre" } } */