]>
Commit | Line | Data |
---|---|---|
bd0d5d4a JM |
1 | // Check that we don't complain about ambiguity between the same static |
2 | // member function in different subobjects. | |
3 | ||
4 | struct A { | |
5 | static void f() {} | |
6 | }; | |
7 | ||
8 | struct B: public A { }; | |
9 | struct C: public A { }; | |
10 | struct D: public B, public C { }; | |
11 | ||
12 | int main() | |
13 | { | |
14 | D d; | |
15 | d.f(); | |
16 | } |