xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/virt-dtor-gen.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
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 Sambuc Foo::~Foo() {}
9f4a2713aSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define {{.*}}void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr
11