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
* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr47391.c
blob
fce34f830f4db2f8a532bd86ce850b775ca9d3a3
1
/* PR tree-optimization/47391 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
5
const
volatile
int
v
=
1
;
6
int
i
=
0
;
7
8
void
9
foo
(
void
)
10
{
11
i
=
v
;
12
}
13
14
int
15
main
(
void
)
16
{
17
foo
();
18
return
0
;
19
}
20
21
/* { dg-final { scan-tree-dump-not "i = 1;" "optimized" } } */