OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* g++.dg/eh/forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
eh
/
omit-frame-pointer.C
1
// { dg-do run }
2
// { dg-options -fomit-frame-pointer }
3
// { dg-options "-fomit-frame-pointer -mno-accumulate-outgoing-args" { target i?86-*-* } }
4
5
#include <iostream>
6
7
class Bug
8
{
9
};
10
11
int throw_bug()
12
{
13
throw Bug();
14
15
return 0;
16
}
17
18
int main()
19
{
20
try {
21
std::cout << throw_bug();
22
} catch (Bug bug) {
23
};
24
25
return 0;
26
}