]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libmudflap/testsuite/libmudflap.c++/error2-frag.cxx
Imported gcc-4.4.3
[msp430-gcc.git] / libmudflap / testsuite / libmudflap.c++ / error2-frag.cxx
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;
+}