diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-01 23:18:25 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-01 23:18:25 +0000 |
commit | 4d9ab43f23fa47dd3ac8b938ddeee4552b749321 (patch) | |
tree | cadd1103d4eb802ded5c68b10a9c73f352874312 /clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp | |
parent | a5749bda2c9f0e718b6432f74c0d801bab1f4641 (diff) | |
download | bcm5719-llvm-4d9ab43f23fa47dd3ac8b938ddeee4552b749321.tar.gz bcm5719-llvm-4d9ab43f23fa47dd3ac8b938ddeee4552b749321.zip |
Fix a code gen. crash synthesizing a destructor.
Fixes pr5660.
llvm-svn: 90283
Diffstat (limited to 'clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp b/clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp new file mode 100644 index 00000000000..b95218a322f --- /dev/null +++ b/clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp @@ -0,0 +1,16 @@ +// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s + +struct box { + virtual ~box(); +}; + +struct pile_box : public box { + pile_box(box *); +}; + +pile_box::pile_box(box *pp) +{ +} + +// CHECK: call void @_ZdlPv + |