blob: 052be5fbeec2158942dbb18c4742f48feaf9aa91 [file] [log] [blame]
// Build don't link:
//
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 6 Jun 1999 <nathan@acm.org>
// We cannot catch an incomplete type, or ptr to one
struct A; // ERROR - forward decl
void fn()
{
try {}
catch (A *p) {} // ERROR - undefined type
try {}
catch (A p) {} // ERROR - undefined type
try {}
catch (void const *p) {} // ok
}