summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c++/error2-frag.cxx')
-rw-r--r--libmudflap/testsuite/libmudflap.c++/error2-frag.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
new file mode 100644
index 000000000..0e89e117f
--- /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;
+}