libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr95113.c
bloba8f8c901ebeec1329a267a5165f73f5cf7c01bd8
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
3 /* { dg-require-effective-target exceptions } */
5 int a, b;
7 static inline long int
8 foo (long int x, int y)
10 if (y == 0)
11 return 0;
13 if (x == -1 && y == -1)
14 return 0;
16 return x / y;
19 static inline int
20 bar (int *p)
22 int c = foo (a, 1) + *p;
23 return b;
26 int
27 main ()
29 int d = 0;
30 b = foo (1, 1);
31 bar (&d);
32 return 0;