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));
|
2011-06-16 07:02:42 +08:00
|
|
|
void test0() {
|
2012-10-17 10:28:37 +08:00
|
|
|
make();
|
2011-06-16 07:02:42 +08:00
|
|
|
id x = 0;
|
|
|
|
// CHECK: call void @objc_release(
|
2012-10-17 10:28:37 +08:00
|
|
|
// CHECK: call void @objc_storeStrong(
|
2011-06-16 07:02:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: declare extern_weak void @objc_release(
|
2012-10-17 10:28:37 +08:00
|
|
|
// CHECK: declare extern_weak void @objc_storeStrong(
|