]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/primary-base.cpp
Vendor import of clang trunk r162107:
[FreeBSD/FreeBSD.git] / test / SemaCXX / primary-base.cpp
1 // RUN: %clang_cc1 -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
8 // of F.
9 class F : virtual A, virtual C { };
10
11 int sa[sizeof(F) == sizeof(A) ? 1 : -1];