From: John McCall Date: Tue, 1 May 2012 08:59:06 +0000 (+0000) Subject: Add a disclaimer to the new test, plus a user-declared ctor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2244f6aa1c378657b96f7e076a705845466a93e;p=clang Add a disclaimer to the new test, plus a user-declared ctor to force the emission of vtordisps. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155906 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/ms_class_layout.cpp b/test/Sema/ms_class_layout.cpp index bc9d7564e7..4a3a647c72 100644 --- a/test/Sema/ms_class_layout.cpp +++ b/test/Sema/ms_class_layout.cpp @@ -488,10 +488,11 @@ int main() { // Overriding a method means that all the vbases containing that // method need a vtordisp. +// FIXME: this is unverified!! namespace test1 { struct A { virtual void foo(); }; struct B : A {}; - struct C : virtual A, virtual B { virtual void foo(); }; + struct C : virtual A, virtual B { C(); virtual void foo(); }; void test() { C *c; } // CHECK: 0 | struct test1::C