xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/virtual-destructor-synthesis.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc struct box {
4f4a2713aSLionel Sambuc   virtual ~box();
5f4a2713aSLionel Sambuc };
6f4a2713aSLionel Sambuc 
7f4a2713aSLionel Sambuc struct pile_box : public box {
8f4a2713aSLionel Sambuc   pile_box(box *);
9f4a2713aSLionel Sambuc };
10f4a2713aSLionel Sambuc 
pile_box(box * pp)11f4a2713aSLionel Sambuc pile_box::pile_box(box *pp)
12f4a2713aSLionel Sambuc {
13f4a2713aSLionel Sambuc }
14f4a2713aSLionel Sambuc 
15f4a2713aSLionel Sambuc // CHECK: call void @_ZdlPv
16f4a2713aSLionel Sambuc 
17