Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20020916-1.c

raw
1 /* Distilled from try_pre_increment in flow.c. If-conversion inserted
2 new instructions at the wrong place on ppc. */
3
4 void abort(void);
5
6 int foo(int a)
7 {
8 int x;
9 x = 0;
10 if (a > 0) x = 1;
11 if (a < 0) x = 1;
12 return x;
13 }
14
15 int main()
16 {
17 if (foo(1) != 1)
18 abort();
19 return 0;
20 }
21