blob: c6a2ffb06bf342cc0dda8d6f3fb317f00efe1439 [file] [log] [blame]
// RUN: %clang_cc1 -triple arm64-apple-ios9 -fobjc-runtime=ios-9.0 -fobjc-arc -std=c++11 -O -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK
id foo(void);
// CHECK-LABEL: define{{.*}} void @_Z14test_list_initv(
// CHECK: %[[CALL1:.*]] = call noundef ptr @_Z3foov() [ "clang.arc.attachedcall"(ptr @llvm.objc.retainAutoreleasedReturnValue) ]
// CHECK: call ptr @llvm.objc.retain(ptr %[[CALL1]])
void test_list_init() {
auto t = id{foo()};
}