diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-16 05:31:29 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-16 05:31:29 +0000 |
commit | 8dfa2b3a5b818aa888d21eed8585e3d1b9d3506b (patch) | |
tree | 08e3ceb40470b73c044431212fd55b65e647989b /test/CodeGenCXX/virtual-pseudo-destructor-call.cpp | |
parent | eaea8c4c23b6892c82640c6f67034d9ed4498d45 (diff) |
Fix a couple of cases where we weren't generating the right kind of call
for a call to a virtual function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-pseudo-destructor-call.cpp')
-rw-r--r-- | test/CodeGenCXX/virtual-pseudo-destructor-call.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp b/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp new file mode 100644 index 0000000000..3d99a02160 --- /dev/null +++ b/test/CodeGenCXX/virtual-pseudo-destructor-call.cpp @@ -0,0 +1,10 @@ +// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s + +struct A { + virtual ~A(); +}; + +void f(A *a) { + // CHECK: call void % + a->~A(); +} |