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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh26.C
blob
6d82a4e73a6a384283d60c073e033ad52a3ebe68
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
class MyExceptionHandler { };
5
6
int
7
main() {
8
try {
9
throw MyExceptionHandler();
10
} catch(const MyExceptionHandler& eh) {
11
return 0;
12
} catch(...) {
13
return 1;
14
}
15
return 1;
16
}