Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.eh / catch1.C
blob7aa70ac97b30df6901fc5c92ef211c4d610b2e13
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 6 Jun 1999 <nathan@acm.org>
6 // We cannot catch an incomplete type, or ptr to one
8 struct A; // { dg-error "" } forward decl
10 void fn()
12   try {}
13   catch (A *p) {} // { dg-error "" } undefined type
14   try {}
15   catch (A p) {}  // { dg-error "" } undefined type
16   try {}
17   catch (void const *p) {}  // ok