summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/static-mem2.C
blob: 68623be87e858fa3196187372194b4b6b8c6dc31 (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
26
27
// { dg-do assemble  }
// GROUPS passed static-mem

class desc;

class a_desc {
    public:

    static desc the_desc;

    virtual desc *get_desc();
};

class desc : public a_desc {
    public:

    static desc the_desc;

    desc(int);

    desc *get_desc();
};


desc desc::the_desc(1);

desc a_desc::the_desc(0);