diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-06 09:56:09 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-06 09:56:09 +0000 |
commit | a8b0896fe66c3ef592d99d3a2f02eb2d986eb2b1 (patch) | |
tree | 1379a60b4b8c9ac020d95be9606056c58056472d | |
parent | debed82cde7c4578993c9379d23c1754fe9b29ac (diff) | |
download | gcc-a8b0896fe66c3ef592d99d3a2f02eb2d986eb2b1.zip gcc-a8b0896fe66c3ef592d99d3a2f02eb2d986eb2b1.tar.gz gcc-a8b0896fe66c3ef592d99d3a2f02eb2d986eb2b1.tar.bz2 |
New test
From-SVN: r21621
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/lookup2.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup2.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup2.C new file mode 100644 index 0000000..169aee0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/lookup2.C @@ -0,0 +1,20 @@ +// Build don't link: +// Special g++ Options: + +class A +{ +protected: + void f1() {}; +}; + +template <class T> class B : private A { +protected: + using A::f1; +}; + +template <class T> class D : private B<T> +{ +public: + void f2() { f1(); }; +}; + |