aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-01-11 12:50:28 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-01-11 12:50:28 +0000
commit79c9e15977b46189fe906d1879de77d7dec335e6 (patch)
treee32bdfe8d136934337e0de9a0c9441530dc47a87 /gcc/testsuite
parent96a1e32dcdf973cab1c308cfcdfcf6f07444b2cc (diff)
downloadgcc-79c9e15977b46189fe906d1879de77d7dec335e6.zip
gcc-79c9e15977b46189fe906d1879de77d7dec335e6.tar.gz
gcc-79c9e15977b46189fe906d1879de77d7dec335e6.tar.bz2
instantiate13.C: New test.
testsuite: * g++.old-deja/g++.pt/instantiate13.C: New test. From-SVN: r38904
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C25
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4e44d8e..7a37361 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
+ * g++.old-deja/g++.pt/instantiate13.C: New test.
+
+2001-01-11 Nathan Sidwell <nathan@codesourcery.com>
+
* g++.old-deja/g++.other/defarg7.C: New test.
* g++.old-deja/g++.other/defarg8.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C
new file mode 100644
index 0000000..1fff4a2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C
@@ -0,0 +1,25 @@
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 11 Jan 2001 <nathan@codesourcery.com>
+
+// Bug 1551. We were accessing some uninitialized memory, causing us
+// to reject this.
+
+template <typename T>
+struct base
+{
+base();
+base(unsigned);
+};
+
+template <typename V>
+struct Y
+{
+Y(unsigned = 0);
+};
+
+template <>
+Y<char>::Y(unsigned) { }
+
+base<double> x;