From c2244f6aa1c378657b96f7e076a705845466a93e Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 1 May 2012 08:59:06 +0000 Subject: [PATCH] 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 --- test/Sema/ms_class_layout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.1