aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr28114.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr28114.C')
-rw-r--r--gcc/testsuite/g++.dg/other/pr28114.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C
new file mode 100644
index 00000000000..05aeebb8055
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/pr28114.C
@@ -0,0 +1,9 @@
+
+// Test to make sure we do not ICE on this invalid program.
+
+template<int> void foo(struct {}*); // { dg-error "" }
+
+void bar()
+{
+ foo<0>(0); // { dg-error "" }
+}