You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
340 B
13 lines
340 B
7 months ago
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify %s
|
||
|
// expected-no-diagnostics
|
||
|
class A { virtual void f(); };
|
||
|
class B : virtual A { };
|
||
|
|
||
|
class C : B { };
|
||
|
|
||
|
// Since A is already a primary base class, C should be the primary base class
|
||
|
// of F.
|
||
|
class F : virtual A, virtual C { };
|
||
|
|
||
|
int sa[sizeof(F) == sizeof(A) ? 1 : -1];
|