Debian Codegraph @

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

raw
1 /* A reminder to process ops in generate_expr_as_of_bb exactly once. */
2
3 void abort (void);
4
5 long __attribute__((noinline))
6 foo (long ct, long cf, _Bool p1, _Bool p2, _Bool p3)
7 {
8 long diff;
9
10 diff = ct - cf;
11
12 if (p1)
13 {
14 if (p2)
15 {
16 if (p3)
17 {
18 long tmp = ct;
19 ct = cf;
20 cf = tmp;
21 }
22 diff = ct - cf;
23 }
24
25 return diff;
26 }
27
28 abort ();
29 }
30
31 int main ()
32 {
33 if (foo(2, 3, 1, 1, 1) == 0)
34 abort ();
35 return 0;
36 }