summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr28432.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr28432.C')
-rw-r--r--gcc/testsuite/g++.dg/other/pr28432.C7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr28432.C b/gcc/testsuite/g++.dg/other/pr28432.C
new file mode 100644
index 000000000..2b9c76343
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/pr28432.C
@@ -0,0 +1,7 @@
+
+// Test to make sure we do not ICE on this invalid program.
+
+// { dg-options "" }
+
+struct A {};
+void A::foo(); // { dg-error "member function declared in class|outside of class is not definition" }