diff options
Diffstat (limited to 'test/PCH/Inputs/arc.h')
-rw-r--r-- | test/PCH/Inputs/arc.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/PCH/Inputs/arc.h b/test/PCH/Inputs/arc.h index 793fc64..304e612 100644 --- a/test/PCH/Inputs/arc.h +++ b/test/PCH/Inputs/arc.h @@ -14,7 +14,13 @@ CFStringRef CFGetString(); id CreateSomething(); NSString *CreateNSString(); -typedef int array0[sizeof((__bridge id)CFCreateSomething())]; -typedef int array1[sizeof((__bridge CFTypeRef)CreateSomething())]; +#if __has_feature(objc_arc) +#define BRIDGE __bridge +#else +#define BRIDGE +#endif + +typedef int array0[sizeof((BRIDGE id)CFCreateSomething())]; +typedef int array1[sizeof((BRIDGE CFTypeRef)CreateSomething())]; |