summaryrefslogtreecommitdiffstats
path: root/foo.cpp
blob: 58e9b21e200990359e3ae38f471d71b0134b4e50 (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
class c0
{
    public:
        c0() : x(0) { }
        c0(int e) : x(e) { }
    protected:
        int getVal(void) {
            return x;
        }
    private:
        int x;
};

class c1 : public c0
{
    c0 a;
};

int main(int argc, char *argv[])
{

    return 0;
}