2014-01-14 03:48:13 +08:00
|
|
|
// RUN: %clang_cc1 -cxx-abi itanium -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-09-23 03:16:59 +08:00
|
|
|
class A { virtual void f(); };
|
|
|
|
class B : virtual A { };
|
|
|
|
|
|
|
|
class C : B { };
|
|
|
|
|
2009-11-05 11:47:55 +08:00
|
|
|
// Since A is already a primary base class, C should be the primary base class
|
|
|
|
// of F.
|
2009-09-23 03:16:59 +08:00
|
|
|
class F : virtual A, virtual C { };
|
|
|
|
|
|
|
|
int sa[sizeof(F) == sizeof(A) ? 1 : -1];
|