2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / eh3.C
blob8c9ddb4563f717cd25777fd5459ac19908d53b21
1 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2 // { dg-options "-fexceptions" }
4 class foo {
5 public:
6   class error {};
8   void cause_error(void) { throw error(); }
9 };
11 int main(void)
13   foo f;
14   try {
15     f.cause_error();
16   }
17   catch (foo::error&) {
18     return 0;
19   }
20   return 1;