John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 2 | |
| 3 | // rdar://problem/9224855 |
John McCall | 015f33b | 2012-10-17 02:28:37 +0000 | [diff] [blame] | 4 | id make(void) __attribute__((ns_returns_retained)); |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 5 | void test0() { |
John McCall | 015f33b | 2012-10-17 02:28:37 +0000 | [diff] [blame] | 6 | make(); |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 7 | id x = 0; |
| 8 | // CHECK: call void @objc_release( |
John McCall | 015f33b | 2012-10-17 02:28:37 +0000 | [diff] [blame] | 9 | // CHECK: call void @objc_storeStrong( |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | // CHECK: declare extern_weak void @objc_release( |
John McCall | 015f33b | 2012-10-17 02:28:37 +0000 | [diff] [blame] | 13 | // CHECK: declare extern_weak void @objc_storeStrong( |