Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 class A { virtual void f(); };
      4 class B : virtual A { };
      5 
      6 class C : B { };
      7 
      8 // Since A is already a primary base class, C should be the primary base class
      9 // of F.
     10 class F : virtual A, virtual C { };
     11 
     12 int sa[sizeof(F) == sizeof(A) ? 1 : -1];
     13