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
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh47.C
blob
10eb8a8970f6428355c78caddc7c2a1693cc0c72
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <cstdlib>
5
#include <exception>
6
7
void myterm() {
8
exit (0);
9
}
10
11
main() {
12
try {
13
throw "";
14
} catch (...) {
15
}
16
try {
17
std::set_terminate (myterm);
18
throw;
19
} catch (...) {
20
return 1;
21
}
22
return 1;
23
}