OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
For Greta Yorsh.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
20040721-1.c
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