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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
20040721-1.c
blob
1a6e36df8f10d24bf46ac9b2cfaa8d8cf547984b
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
/* Test to check whether global variables are being
5
constant propagated. */
6
7
extern
void
link_error
(
void
);
8
9
int
G
;
10
11
void
12
foo
(
int
i
)
13
{
14
if
(
i
>
0
)
15
G
=
3
;
16
else
17
G
=
3
;
18
19
if
(
G
!=
3
)
20
link_error
();
21
}
22
23
int
24
main
()
25
{
26
foo
(
0
);
27
return
0
;
28
}
29