source: trunk/src/gcc/gcc/testsuite/g++.old-deja/g++.mike/eh17.C@ 2

Last change on this file since 2 was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 282 bytes
Line 
1// Special g++ Options: -fexceptions
2// excess errors test - XFAIL a29k-*-* sparc64-*-elf arm-*-pe
3
4int err = 1;
5
6struct A {
7 ~A() {
8 --err;
9 }
10};
11
12struct B : public A {
13 B() {
14 throw 1;
15 }
16};
17
18main() {
19 try {
20 B b;
21 } catch (...) {
22 return err;
23 }
24 return 1;
25}
Note: See TracBrowser for help on using the repository browser.