1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc struct A { 4f4a2713aSLionel Sambuc virtual ~A(); 5f4a2713aSLionel Sambuc }; 6f4a2713aSLionel Sambuc f(A * a)7f4a2713aSLionel Sambucvoid f(A *a) { 8f4a2713aSLionel Sambuc // CHECK: define {{.*}} @_Z1fP1A 9f4a2713aSLionel Sambuc // CHECK: load 10f4a2713aSLionel Sambuc // CHECK: load 11f4a2713aSLionel Sambuc // CHECK: [[CALLEE:%[a-zA-Z0-9.]*]] = load 12f4a2713aSLionel Sambuc // CHECK: call {{.*}} [[CALLEE]]( 13f4a2713aSLionel Sambuc a->~A(); 14f4a2713aSLionel Sambuc } 15