1 // RUN: %clang_cc1 -std=c++14 -triple x86_64-unknown-unknown-gnu -emit-llvm -O1 -fexperimental-new-pass-manager -o - %s | FileCheck %s
3 template <class T
> T
test() {
14 // FIXME: There should be copy elision here.
15 // CHECK-LABEL: define{{.*}} void @_Z4testI1AET_v
16 // CHECK: call void @_ZN1AC1Ev
17 // CHECK-NEXT: call noundef i32 @_ZN1AcviEv
18 // CHECK-NEXT: call void @_ZN1AC1Ei
19 // CHECK-NEXT: call void @llvm.lifetime.end
29 // FIXME: There should be copy elision here.
30 // CHECK-LABEL: define{{.*}} void @_Z4testI1BET_v
31 // CHECK: call void @_ZN1BC1Ev
32 // CHECK: call void @_ZN1BC1ERK4BSub
33 // CHECK-NEXT: call void @llvm.lifetime.end