xref: /aosp_15_r20/external/clang/test/CodeGenCXX/virt-dtor-gen.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -o - -triple %itanium_abi_triple -emit-llvm %s | FileCheck %s
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 };
~Foo()8 Foo::~Foo() {}
9 
10 // CHECK-LABEL: define {{.*}}void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr
11