Commit b9a2a899 by Nathan Sidwell

* g++.old-deja/g++.eh/catch1.C: New test.

From-SVN: r27425
parent 4cfbc546
1999-06-08 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.eh/catch1.C: New test.
Mon Jun 7 23:39:16 1999 Jeffrey A Law (law@cygnus.com) Mon Jun 7 23:39:16 1999 Jeffrey A Law (law@cygnus.com)
* g++.old-deja/g++.mike/p6610a.C: Expect failure on freebsd-elf. * g++.old-deja/g++.mike/p6610a.C: Expect failure on freebsd-elf.
......
// 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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment