New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 6 Aug 1998 09:56:09 +0000 (09:56 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 6 Aug 1998 09:56:09 +0000 (09:56 +0000)
From-SVN: r21621

gcc/testsuite/g++.old-deja/g++.pt/lookup2.C [new file with mode: 0644]

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 (file)
index 0000000..169aee0
--- /dev/null
@@ -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(); };
+};
+