]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/primary-base.cpp
Update clang to 84175.
[FreeBSD/FreeBSD.git] / test / SemaCXX / primary-base.cpp
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