| 1 |
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ |
| 2 |
|
| 3 |
#include "test-unwind.h" |
| 4 |
|
| 5 |
#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ |
| 6 |
void __attribute__ ((noinline)) foo() |
| 7 |
{ |
| 8 |
ALTER_REGS(); |
| 9 |
// Throw the except and expect returning to main |
| 10 |
throw 1; |
| 11 |
} |
| 12 |
#endif |