OSDN Git Service

new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Mar 2000 08:37:57 +0000 (08:37 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Mar 2000 08:37:57 +0000 (08:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32277 138bc75d-0d04-0410-961f-82ee72b054a4

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

diff --git a/gcc/testsuite/g++.old-deja/g++.other/using7.C b/gcc/testsuite/g++.old-deja/g++.other/using7.C
new file mode 100644 (file)
index 0000000..56f2e84
--- /dev/null
@@ -0,0 +1,21 @@
+// Build don't link:
+
+class A {
+protected:
+  static void f() {};
+};
+
+class B : A {
+public:
+  using A::f;
+  void g() {
+    f();
+    A::f();
+  }
+  struct C {
+    void g() {
+      f();
+      A::f();
+    }
+  };
+};