]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CodeGenCXX/elide-call-reference.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CodeGenCXX / elide-call-reference.cpp
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2 // PR5695
3
4 struct A { A(const A&); ~A(); };
5 A& a();
6 void b() {
7 A x = a();
8 }
9
10 // CHECK: call {{.*}} @_ZN1AC1ERKS_
11 // CHECK: call {{.*}} @_ZN1AD1Ev