2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s
|
2011-06-16 07:02:42 +08:00
|
|
|
|
|
|
|
// rdar://problem/9224855
|
2012-10-17 10:28:37 +08:00
|
|
|
id make(void) __attribute__((ns_returns_retained));
|
2022-02-17 05:09:36 +08:00
|
|
|
void test0(void) {
|
2012-10-17 10:28:37 +08:00
|
|
|
make();
|
2011-06-16 07:02:42 +08:00
|
|
|
id x = 0;
|
2018-12-19 04:33:00 +08:00
|
|
|
// CHECK: call void @llvm.objc.release(
|
|
|
|
// CHECK: call void @llvm.objc.storeStrong(
|
2011-06-16 07:02:42 +08:00
|
|
|
}
|
|
|
|
|
2018-12-19 04:33:00 +08:00
|
|
|
// CHECK: declare extern_weak void @llvm.objc.release(
|
|
|
|
// CHECK: declare extern_weak void @llvm.objc.storeStrong(
|