From d52dae6113fbb58cc9ad88b5288a11ddfbb049a1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 7 Feb 1998 12:18:39 -0500 Subject: [PATCH] new From-SVN: r17764 --- gcc/testsuite/g++.old-deja/g++.pt/const1.C | 4 ++++ gcc/testsuite/g++.old-deja/g++.pt/ctor1.C | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/const1.C create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/ctor1.C diff --git a/gcc/testsuite/g++.old-deja/g++.pt/const1.C b/gcc/testsuite/g++.old-deja/g++.pt/const1.C new file mode 100644 index 00000000000..8ac8a51bf9d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/const1.C @@ -0,0 +1,4 @@ +// Build don't link: +template struct B { static const int i = 3; }; +template struct A { static const int i = B::i; }; +enum { i = A::i }; diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ctor1.C b/gcc/testsuite/g++.old-deja/g++.pt/ctor1.C new file mode 100644 index 00000000000..9e36706711a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/ctor1.C @@ -0,0 +1,10 @@ +// Build don't link: + +template + struct moneypunct +{ + moneypunct (); +}; + +template <> + moneypunct::moneypunct ();