1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s 2f4a2713aSLionel Sambuc // PR5695 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc struct A { A(const A&); ~A(); }; 5f4a2713aSLionel Sambuc A& a(); b()6f4a2713aSLionel Sambucvoid b() { 7f4a2713aSLionel Sambuc A x = a(); 8f4a2713aSLionel Sambuc } 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc // CHECK: call {{.*}} @_ZN1AC1ERKS_ 11f4a2713aSLionel Sambuc // CHECK: call {{.*}} @_ZN1AD1Ev 12