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-sccvn-3.c
blob
9040ff856bcc88983e9eb78c7ce30c95a300f61b
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-fre1" } */
3
int
*
p
;
4
int
main
(
int
argc
,
char
**
argv
)
5
{
6
int
result
;
7
*
p
=
2
;
8
if
(
argc
)
9
*
p
=
2
;
10
result
= *
p
;
11
return
result
;
12
}
13
/* We should eliminate result = *p by saying it has the value 2. */
14
/* { dg-final { scan-tree-dump "return 2;" "fre1"} } */