xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/Inputs/arc.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Header for Objective-C ARC-related PCH tests
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc typedef const void *CFTypeRef;
4*f4a2713aSLionel Sambuc typedef const struct __CFString *CFStringRef;
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc CFTypeRef CFCreateSomething();
7*f4a2713aSLionel Sambuc CFStringRef CFCreateString();
8*f4a2713aSLionel Sambuc CFTypeRef CFGetSomething();
9*f4a2713aSLionel Sambuc CFStringRef CFGetString();
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc @interface NSString
12*f4a2713aSLionel Sambuc @end
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc id CreateSomething();
15*f4a2713aSLionel Sambuc NSString *CreateNSString();
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc #if __has_feature(objc_arc)
18*f4a2713aSLionel Sambuc #define BRIDGE __bridge
19*f4a2713aSLionel Sambuc #else
20*f4a2713aSLionel Sambuc #define BRIDGE
21*f4a2713aSLionel Sambuc #endif
22*f4a2713aSLionel Sambuc 
23*f4a2713aSLionel Sambuc typedef int array0[sizeof((BRIDGE id)CFCreateSomething())];
24*f4a2713aSLionel Sambuc typedef int array1[sizeof((BRIDGE CFTypeRef)CreateSomething())];
25*f4a2713aSLionel Sambuc 
26*f4a2713aSLionel Sambuc 
27