diff options
author | John McCall <rjmccall@apple.com> | 2010-06-02 21:22:02 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-06-02 21:22:02 +0000 |
commit | e21323588b32caf674213c9897dd12e2f0ea3cc5 (patch) | |
tree | 46dcd26e89f6864fd3df029a3fda46c01e7f0d1f /test/CodeGenCXX/virtual-base-destructor-call.cpp | |
parent | 79e5ab7a537987348a9ba01424d8bbe7080eac57 (diff) |
Don't try to emit the vtable for a class just because we're emitting a
virtual function from it.
Fixes PR7241.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-base-destructor-call.cpp')
-rw-r--r-- | test/CodeGenCXX/virtual-base-destructor-call.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/CodeGenCXX/virtual-base-destructor-call.cpp b/test/CodeGenCXX/virtual-base-destructor-call.cpp index 22c49a089d..4618a03b9d 100644 --- a/test/CodeGenCXX/virtual-base-destructor-call.cpp +++ b/test/CodeGenCXX/virtual-base-destructor-call.cpp @@ -27,6 +27,11 @@ int main() { // CHECK: call void @_ZN13basic_istreamIcED2Ev // CHECK: } +// basic_istream's base dtor is a no-op. +// CHECK: define linkonce_odr void @_ZN13basic_istreamIcED2Ev +// CHECK-NOT: call +// CHECK: } + // basic_iostream's deleting dtor calls its complete dtor, then // operator delete(). // CHECK: define linkonce_odr void @_ZN14basic_iostreamIcED0Ev @@ -44,9 +49,3 @@ int main() { // CHECK: define linkonce_odr void @_ZN13basic_istreamIcED0Ev // CHECK: call void @_ZN13basic_istreamIcED1Ev // CHECK: call void @_ZdlPv - -// basic_istream's base dtor is a no-op. -// CHECK: define linkonce_odr void @_ZN13basic_istreamIcED2Ev -// CHECK-NOT: call -// CHECK: } - |