Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr45206.c
blob7dd4bd263dc3250368118c5ef30ea30ba76175ad
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fno-omit-frame-pointer" } */
4 struct _Unwind_Context { void *ra; };
6 long uw_install_context_1 (struct _Unwind_Context *, struct _Unwind_Context *);
8 void _Unwind_RaiseException(void)
10 struct _Unwind_Context this_context, cur_context;
11 long offset = uw_install_context_1 (&this_context, &cur_context);
12 void *handler = __builtin_frob_return_addr ((&cur_context)->ra);
14 __builtin_eh_return (offset, handler);