// { dg-do assemble } // // Copyright (C) 1999 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 6 Jun 1999 // We cannot catch an incomplete type, or ptr to one struct A; // { dg-error "" } forward decl void fn() { try {} catch (A *p) {} // { dg-error "" } undefined type try {} catch (A p) {} // { dg-error "" } undefined type try {} catch (void const *p) {} // ok }