From 79c9e15977b46189fe906d1879de77d7dec335e6 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 11 Jan 2001 12:50:28 +0000 Subject: [PATCH] instantiate13.C: New test. testsuite: * g++.old-deja/g++.pt/instantiate13.C: New test. From-SVN: r38904 --- gcc/testsuite/ChangeLog | 4 +++ .../g++.old-deja/g++.pt/instantiate13.C | 25 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e44d8e95e9..7a37361b16e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-01-11 Nathan Sidwell + + * g++.old-deja/g++.pt/instantiate13.C: New test. + 2001-01-11 Nathan Sidwell * g++.old-deja/g++.other/defarg7.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 00000000000..1fff4a28616 --- /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 + +// Bug 1551. We were accessing some uninitialized memory, causing us +// to reject this. + +template +struct base +{ +base(); +base(unsigned); +}; + +template +struct Y +{ +Y(unsigned = 0); +}; + +template <> +Y::Y(unsigned) { } + +base x;