diff options
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/const1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/ctor1.C | 10 |
2 files changed, 14 insertions, 0 deletions
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 <class T> struct B { static const int i = 3; }; +template <class T> struct A { static const int i = B<T>::i; }; +enum { i = A<int>::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 <typename _CharT> + struct moneypunct +{ + moneypunct (); +}; + +template <> + moneypunct<char>::moneypunct (); |