summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/elide-call-reference.cpp
blob: c80e8fbfdf78d661a4f665e6c38b2edec2e827fd (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 %s -emit-llvm -cxx-abi itanium -o - | FileCheck %s
// PR5695

struct A { A(const A&); ~A(); };
A& a();
void b() {
  A x = a();
}

// CHECK: call {{.*}} @_ZN1AC1ERKS_
// CHECK: call {{.*}} @_ZN1AD1Ev
OpenPOWER on IntegriCloud