summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/lookup2.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/lookup2.C20
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 100755
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(); };
+};
+