summaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-19 21:47:03 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-19 21:47:03 +0000
commitd1052ec6f2f354422e86b18f3662aa6edd25b72a (patch)
tree2ba29d1c49926d48a406867722299d657c203c80 /libmudflap
parent87861324a1f2ded847aebaa8faf51370746aeef9 (diff)
downloadgcc-d1052ec6f2f354422e86b18f3662aa6edd25b72a.tar.gz
PR mudflap/26789
* testsuite/libmudflap.c++/error1-frag.cxx: New test. PR mudflap/26790 * testsuite/libmudflap.c++/error2-frag.cxx: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog8
-rw-r--r--libmudflap/testsuite/libmudflap.c++/error1-frag.cxx5
-rw-r--r--libmudflap/testsuite/libmudflap.c++/error2-frag.cxx10
3 files changed, 23 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index ca156e88e7e..f15d1172b97 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -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
index 00000000000..8bfe8532830
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx
@@ -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
index 00000000000..0e89e117fbf
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
@@ -0,0 +1,10 @@
+// PR 26790
+// { dg-do compile }
+
+struct A;
+
+A foo() // { dg-error "incomplete" }
+{
+ A a; // { dg-error "incomplete" }
+ return a;
+}