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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-dse-41.c
blob
9128eea1035dc11df9eb89046b24a41d683ba1d5
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-dse1" } */
3
4
int
a
[
2
];
5
void
foo
(
int
i
,
int
k
)
6
{
7
a
[
0
] =
i
;
8
if
(
k
)
9
a
[
0
] =
a
[
i
] +
k
;
10
else
11
a
[
0
] =
a
[
i
] +
3
;
12
a
[
0
] =
0
;
13
}
14
15
/* Only the last store remains. */
16
/* { dg-final { scan-tree-dump-times " = " 1 "dse1" } } */