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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh55.C
blob
1482680745fd504f6c2e2f7efe1305210fe1c90c
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
}