Debian Codegraph @

gcc/testsuite/gcc.dg/ipa/pr95113.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
3 /* { dg-require-effective-target exceptions } */
4
5 int a, b;
6
7 static inline long int
8 foo (long int x, int y)
9 {
10 if (y == 0)
11 return 0;
12
13 if (x == -1 && y == -1)
14 return 0;
15
16 return x / y;
17 }
18
19 static inline int
20 bar (int *p)
21 {
22 int c = foo (a, 1) + *p;
23 return b;
24 }
25
26 int
27 main ()
28 {
29 int d = 0;
30 b = foo (1, 1);
31 bar (&d);
32 return 0;
33 }