diff options
Diffstat (limited to 'test/CodeGenCXX/thunks.cpp')
-rw-r--r-- | test/CodeGenCXX/thunks.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenCXX/thunks.cpp b/test/CodeGenCXX/thunks.cpp index 0e97255cc6fa..38afb9d0dbf7 100644 --- a/test/CodeGenCXX/thunks.cpp +++ b/test/CodeGenCXX/thunks.cpp @@ -361,6 +361,23 @@ namespace Test15 { // CHECK: declare void @_ZThn8_N6Test151C1fEiz } +namespace Test16 { +struct A { + virtual ~A(); +}; +struct B { + virtual void foo(); +}; +struct C : public A, public B { + void foo() {} +}; +struct D : public C { + ~D(); +}; +D::~D() {} +// CHECK: define linkonce_odr void @_ZThn8_N6Test161C3fooEv({{.*}}) {{.*}} comdat +} + /**** The following has to go at the end of the file ****/ // This is from Test5: |