blob: 9decc5efce6e998cf717a62dab2714b952c3cefc [file] [log] [blame]
John McCall31168b02011-06-15 23:02:42 +00001static inline void *test0(id x) {
2 return x;
3}
4
5static inline void **test1(__strong id* x) {
6 return (void**) x;
7}
8
9
10
11
12
13struct Test3 {
14 id *field;
15};
16
17@interface Test4 {
18@public
19 id *field1;
20 __strong id *field2;
21}
22@end
23
24struct Test5 {
25 id field;
26};
27
28
29
30
31
32
33
34extern struct Test6 *const kMagicConstant;
35
36
37
38
39
40@interface Test7
41@property id *prop;
42@end
John McCall0c07bee2011-06-17 21:56:12 +000043
44
45
46
47
48
49
50static inline void *test8(id ptr) {
51 return (__bridge_retain void*) ptr;
52}
Manman Ren073db022016-03-10 18:53:19 +000053
54typedef struct {
55 const char *name;
56 id field;
57} Test9;