gcc/testsuite/g++.dg/opt/pr99034.C
raw| 1 | // PR ipa/99034 |
| 2 | // { dg-do compile } |
| 3 | // { dg-options "-O2" } |
| 4 | |
| 5 | void *b[5]; |
| 6 | void foo (void); |
| 7 | struct S { ~S (); }; |
| 8 | |
| 9 | static inline void |
| 10 | __attribute__((always_inline)) |
| 11 | bar (int d) |
| 12 | { |
| 13 | S s; |
| 14 | while (d) |
| 15 | foo (); |
| 16 | } |
| 17 | |
| 18 | void |
| 19 | baz (void) |
| 20 | { |
| 21 | bar (2); |
| 22 | __builtin_setjmp (b); |
| 23 | } |