re PR c++/26789 (ICE on incomplete struct with -fmudflap)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Wed, 19 Apr 2006 21:47:03 +0000 (21:47 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Wed, 19 Apr 2006 21:47:03 +0000 (21:47 +0000)
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

libmudflap/ChangeLog
libmudflap/testsuite/libmudflap.c++/error1-frag.cxx [new file with mode: 0644]
libmudflap/testsuite/libmudflap.c++/error2-frag.cxx [new file with mode: 0644]

index ca156e88e7eea8c7f10666f2e0bc769643befc31..f15d1172b975680657940e350b4c647d13f35d23 100644 (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
diff --git a/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx
new file mode 100644 (file)
index 0000000..8bfe853
--- /dev/null
@@ -0,0 +1,5 @@
+// PR 26789
+// { dg-do compile }
+
+struct A;
+A a; // { dg-error "incomplete" }
diff --git a/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
new file mode 100644 (file)
index 0000000..0e89e11
--- /dev/null
@@ -0,0 +1,10 @@
+// PR 26790
+// { dg-do compile }
+
+struct A;
+
+A foo()  // { dg-error "incomplete" }
+{
+    A a; // { dg-error "incomplete" }
+    return a;
+}