* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr59722.c
blob7626fd22e1d8ac3bb0852e11b4ddd208b0d60bfc
1 /* PR ipa/59722 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug" } */
5 extern void abrt (const char *, int) __attribute__((noreturn));
6 void baz (int *, int *);
8 static inline int
9 bar (void)
11 return 1;
14 static inline void
15 foo (int *x, int y (void))
17 while (1)
19 int a = 0;
20 if (*x)
22 baz (x, &a);
23 while (a && !y ())
25 break;
27 abrt ("", 1);
31 void
32 test (int x)
34 foo (&x, bar);
35 foo (&x, bar);