blob: e5c67c58d64a29c6ee158f1e36b74c15cb96e02d (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
__weak id* x;
id* __weak y;
id* __weak* z;
__weak id* a1[20];
id* __weak a2[30];
id** __weak a3[40];
void foo (__weak id *param) {
*param = 0;
}
int main()
{
*x = 0;
*y = 0;
**z = 0;
a1[3] = 0;
a2[3] = 0;
a3[3][4] = 0;
}
|