[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / primary-base.cpp
blobd305aa3b72db83337d5ede900f9e4e4a80c3c32a
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 { };
6 class C : B { };
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 { };
12 int sa[sizeof(F) == sizeof(A) ? 1 : -1];