Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr113831.c

raw
1 /* { dg-do run } */
2
3 int a[3];
4 int __attribute__((noipa))
5 foo(int i, int x)
6 {
7 int tem = 0;
8 a[2] = x;
9 if (i < 1)
10 ++i;
11 else
12 {
13 ++i;
14 tem = a[i];
15 }
16 tem += a[i];
17 return tem;
18 }
19
20 int
21 main()
22 {
23 if (foo (0, 7) != 0)
24 __builtin_abort();
25 return 0;
26 }