aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ctor6.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/template/ctor6.C')
-rw-r--r--gcc/testsuite/g++.dg/template/ctor6.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/ctor6.C b/gcc/testsuite/g++.dg/template/ctor6.C
new file mode 100644
index 00000000000..4f21dc9ebf8
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/ctor6.C
@@ -0,0 +1,11 @@
+// PR c++/25663
+
+template<int> struct A
+{
+ A(int);
+};
+
+void foo()
+{
+ A<0>(A<0>(0));
+}