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