repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
stackalign
/
unwind-0.C
blob
b1e79d8920331523233331bb085e16e792e75bb3
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