diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-28 20:45:28 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-28 20:45:28 +0000 |
commit | e1e35f761970fd662696b803a839c1f4a56f61b2 (patch) | |
tree | ef7cee5bf27f4f66441a9a475a98b312eae5a7b7 /test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp | |
parent | dd15907deb4e70f466ed28837b9a22f62c9db7cc (diff) |
[ms-cxxabi] Move CodeGenVTables::needsVTTParameter to ItaniumCXXABI.
This function only makes sense there. Eventually it should no longer
be part of the CGCXXABI interface, as it is an Itanium-specific detail.
Differential Revision: http://llvm-reviews.chandlerc.com/D821
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp')
-rw-r--r-- | test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp b/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp new file mode 100644 index 0000000000..7e631c1d78 --- /dev/null +++ b/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 %s -fno-rtti -cxx-abi microsoft -triple=i386-pc-win32 -emit-llvm -o %t + +struct A {}; +struct B : virtual A { + virtual ~B(); +}; +struct C : B { + C(); +}; + +C::C() {} |