blob: f5f5b90ea52bca6a3ce3b41ffbf0b01b545ef93f [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s
John McCallf85e1932011-06-15 23:02:42 +00002
3// rdar://problem/9224855
John McCall015f33b2012-10-17 02:28:37 +00004id make(void) __attribute__((ns_returns_retained));
John McCallf85e1932011-06-15 23:02:42 +00005void test0() {
John McCall015f33b2012-10-17 02:28:37 +00006 make();
John McCallf85e1932011-06-15 23:02:42 +00007 id x = 0;
8 // CHECK: call void @objc_release(
John McCall015f33b2012-10-17 02:28:37 +00009 // CHECK: call void @objc_storeStrong(
John McCallf85e1932011-06-15 23:02:42 +000010}
11
12// CHECK: declare extern_weak void @objc_release(
John McCall015f33b2012-10-17 02:28:37 +000013// CHECK: declare extern_weak void @objc_storeStrong(