aboutsummaryrefslogblamecommitdiff
path: root/test/CodeGenCXX/copy-constructor-elim-2.cpp
blob: 3a06c10ff18622381f64b06b67f15a99036a68a9 (plain) (tree)
1
2
3
4
5
6
7






                                                    
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s

struct A { int x; A(int); ~A(); };
A f() { return A(0); }
// CHECK: define void @_Z1fv
// CHECK: call void @_ZN1AC1Ei
// CHECK-NEXT: ret void