diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-08 19:15:38 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-08 19:15:38 +0000 |
commit | c3dcfa20f8ec56fad90ffe42d0f4bc0168a2e138 (patch) | |
tree | 1085c867d37de7e9fe9495fa54dd962141f5eee1 /test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp | |
parent | e0acd380f27275aa6f98c7af0e5c654c69b0ab12 (diff) |
Abstract out parts of thunk emission code, add support for simple thunks when using -cxx-abi microsoft
Reviewed at http://llvm-reviews.chandlerc.com/D1787
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192220 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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp b/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp index 064a3ffda9..3805243c6a 100644 --- a/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp +++ b/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp @@ -93,3 +93,11 @@ void call_vbase_bar(B *obj) { // // CHECK: ret void } + +struct C : B { + C(); + // has an implicit vdtor. +}; + +// Used to crash on an assertion. +C::C() {} |