1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -o - -triple %itanium_abi_triple -emit-llvm %s | FileCheck %s 2f4a2713aSLionel Sambuc // PR5483 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc // Make sure we generate all three forms of the destructor when it is virtual. 5f4a2713aSLionel Sambuc class Foo { 6f4a2713aSLionel Sambuc virtual ~Foo(); 7f4a2713aSLionel Sambuc }; ~Foo()8f4a2713aSLionel SambucFoo::~Foo() {} 9f4a2713aSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define {{.*}}void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr 11