summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/visibility22.C
blob: f97ef814763e5ea28b171b7c3a60045a0a2fd0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// GROUPS passed visibility
// visibility file
// From: Robert Carden <carden@thoth.ics.uci.edu>
// Date:     Thu, 12 Aug 1993 13:48:05 -0700
// Subject:  bug 8/12/93 -- #5
// Message-ID: <9308121348.aa26256@Paris.ics.uci.edu>

// 5.cc
#include <iostream>

class A {
        int x;
public:
        void f(int);
        void f(float);
        void g(void *);
};

class B : private A {
protected:
        A::f;
public:
        A::g;
};