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
Index: cp/ChangeLog
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh55.C
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <exception>
5
#include <stdlib.h>
6
7
void my_terminate_handler() {
8
exit(0);
9
}
10
11
void throw_an_unexpected_exception() throw() {
12
throw 1;
13
}
14
15
int main() {
16
std::set_terminate(my_terminate_handler);
17
throw_an_unexpected_exception();
18
return 1;
19
}