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
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20020916-1.c
1
/* Distilled from try_pre_increment in flow.c. If-conversion inserted
2
new instructions at the wrong place on ppc. */
3
4
int foo(int a)
5
{
6
int x;
7
x = 0;
8
if (a > 0) x = 1;
9
if (a < 0) x = 1;
10
return x;
11
}
12
13
int main()
14
{
15
if (foo(1) != 1)
16
abort();
17
return 0;
18
}
19