re PR c++/26789 (ICE on incomplete struct with -fmudflap)

PR mudflap/26789
	* testsuite/libmudflap.c++/error1-frag.cxx: New test.

	PR mudflap/26790
	* testsuite/libmudflap.c++/error2-frag.cxx: New test.

From-SVN: r113095
This commit is contained in:
Volker Reichelt 2006-04-19 21:47:03 +00:00 committed by Volker Reichelt
parent 91d876d91c
commit 51e8f10cf6
3 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2006-04-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR mudflap/26789
* testsuite/libmudflap.c++/error1-frag.cxx: New test.
PR mudflap/26790
* testsuite/libmudflap.c++/error2-frag.cxx: New test.
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libmudflap.exp (libmudflap-init): Recognize multilib

View file

@ -0,0 +1,5 @@
// PR 26789
// { dg-do compile }
struct A;
A a; // { dg-error "incomplete" }

View file

@ -0,0 +1,10 @@
// PR 26790
// { dg-do compile }
struct A;
A foo() // { dg-error "incomplete" }
{
A a; // { dg-error "incomplete" }
return a;
}