Hans Wennborg | c9bd88e | 2014-01-14 19:35:09 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -o - -triple %itanium_abi_triple -emit-llvm %s | FileCheck %s |
Eli Friedman | b572c92 | 2009-11-14 04:19:37 +0000 | [diff] [blame] | 2 | // PR5483 |
3 | |||||
4 | // Make sure we generate all three forms of the destructor when it is virtual. | ||||
5 | class Foo { | ||||
6 | virtual ~Foo(); | ||||
7 | }; | ||||
8 | Foo::~Foo() {} | ||||
9 | |||||
Rafael Espindola | 3497069 | 2013-12-12 16:07:11 +0000 | [diff] [blame] | 10 | // CHECK-LABEL: define {{.*}}void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr |