URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.eh/] [catch1.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
//
// 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; // { 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
}