xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/Inputs/arc-system-header.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)

test0(id x)1*f4a2713aSLionel Sambuc static inline void *test0(id x) {
2*f4a2713aSLionel Sambuc   return x;
3*f4a2713aSLionel Sambuc }
4*f4a2713aSLionel Sambuc 
test1(__strong id * x)5*f4a2713aSLionel Sambuc static inline void **test1(__strong id* x) {
6*f4a2713aSLionel Sambuc   return (void**) x;
7*f4a2713aSLionel Sambuc }
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc struct Test3 {
14*f4a2713aSLionel Sambuc   id *field;
15*f4a2713aSLionel Sambuc };
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc @interface Test4 {
18*f4a2713aSLionel Sambuc @public
19*f4a2713aSLionel Sambuc   id *field1;
20*f4a2713aSLionel Sambuc   __strong id *field2;
21*f4a2713aSLionel Sambuc }
22*f4a2713aSLionel Sambuc @end
23*f4a2713aSLionel Sambuc 
24*f4a2713aSLionel Sambuc struct Test5 {
25*f4a2713aSLionel Sambuc   id field;
26*f4a2713aSLionel Sambuc };
27*f4a2713aSLionel Sambuc 
28*f4a2713aSLionel Sambuc 
29*f4a2713aSLionel Sambuc 
30*f4a2713aSLionel Sambuc 
31*f4a2713aSLionel Sambuc 
32*f4a2713aSLionel Sambuc 
33*f4a2713aSLionel Sambuc 
34*f4a2713aSLionel Sambuc extern struct Test6 *const kMagicConstant;
35*f4a2713aSLionel Sambuc 
36*f4a2713aSLionel Sambuc 
37*f4a2713aSLionel Sambuc 
38*f4a2713aSLionel Sambuc 
39*f4a2713aSLionel Sambuc 
40*f4a2713aSLionel Sambuc @interface Test7
41*f4a2713aSLionel Sambuc @property id *prop;
42*f4a2713aSLionel Sambuc @end
43*f4a2713aSLionel Sambuc 
44*f4a2713aSLionel Sambuc 
45*f4a2713aSLionel Sambuc 
46*f4a2713aSLionel Sambuc 
47*f4a2713aSLionel Sambuc 
48*f4a2713aSLionel Sambuc 
49*f4a2713aSLionel Sambuc 
test8(id ptr)50*f4a2713aSLionel Sambuc static inline void *test8(id ptr) {
51*f4a2713aSLionel Sambuc   return (__bridge_retain void*) ptr;
52*f4a2713aSLionel Sambuc }
53