xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/elide-call-reference.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
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 Sambuc void b() {
7f4a2713aSLionel Sambuc   A x = a();
8f4a2713aSLionel Sambuc }
9f4a2713aSLionel Sambuc 
10f4a2713aSLionel Sambuc // CHECK: call {{.*}} @_ZN1AC1ERKS_
11f4a2713aSLionel Sambuc // CHECK: call {{.*}} @_ZN1AD1Ev
12