diff options
author | John McCall <rjmccall@apple.com> | 2012-05-01 08:59:06 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-05-01 08:59:06 +0000 |
commit | c2244f6aa1c378657b96f7e076a705845466a93e (patch) | |
tree | 8f7ae01e4eb4cefa518317a6abf2f70e7b8e9f3b | |
parent | 441c6239c6df8c759bacf6510efbfd434b647066 (diff) |
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
-rw-r--r-- | test/Sema/ms_class_layout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |