aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc15.C
blob: e4dd53e0994d7e31f596125f2ed1228d07ae5f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link: 
// GROUPS passed miscellaneous-bugs
// we shouldn't get any warnings or errors for this code
struct A {
        int     aa;
};
struct B : public A {
};
struct C : public A {
};
struct D : public C, public B {
        void fun() { C::aa = 10; }
};