Anders Carlsson | 56cfdc1 | 2009-09-22 19:16:59 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | class A { virtual void f(); }; | ||||
3 | class B : virtual A { }; | ||||
4 | |||||
5 | class C : B { }; | ||||
6 | |||||
7 | // Since A is already a primary base class, C should be the primary base class of F. | ||||
8 | class F : virtual A, virtual C { }; | ||||
9 | |||||
10 | int sa[sizeof(F) == sizeof(A) ? 1 : -1]; | ||||
11 |