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
RISC-V: Fix rtl checking enabled failure with -msave-restore.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh27.C
blob
dcfb5e7a0930a064466368d051a5ce9a7af43d97
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <typeinfo>
5
6
class MyExceptionHandler { };
7
8
int
9
main() {
10
try {
11
throw MyExceptionHandler();
12
} catch(const MyExceptionHandler& eh) {
13
return 0;
14
} catch(...) {
15
return 1;
16
}
17
return 1;
18
}