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 | aeb11a8c0b141c9ff2e9d9ef56b24e3e49e71011 (patch) | |
tree | da552487d527cb99c10ee18191b6c73e1a3e17b8 /clang/test/Sema/ms_class_layout.cpp | |
parent | e42a3366044715bce62d328501a185fa8eab954d (diff) | |
download | bcm5719-llvm-aeb11a8c0b141c9ff2e9d9ef56b24e3e49e71011.tar.gz bcm5719-llvm-aeb11a8c0b141c9ff2e9d9ef56b24e3e49e71011.zip |
Add a disclaimer to the new test, plus a user-declared ctor
to force the emission of vtordisps.
llvm-svn: 155906
Diffstat (limited to 'clang/test/Sema/ms_class_layout.cpp')
-rw-r--r-- | clang/test/Sema/ms_class_layout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/ms_class_layout.cpp b/clang/test/Sema/ms_class_layout.cpp index bc9d7564e72..4a3a647c72b 100644 --- a/clang/test/Sema/ms_class_layout.cpp +++ b/clang/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 |