brintos

brintos / llvm-project-archived public Read only

0
0
Text · 915 B · 9ea6ce1 Raw
23 lines · plain
1// RUN: not %clang_cc1  -triple x86_64-apple-darwin10  -fdiagnostics-parseable-fixits -x objective-c %s 2>&1  | FileCheck %s2// RUN: not %clang_cc1  -triple x86_64-apple-darwin10  -fobjc-arc -fdiagnostics-parseable-fixits -x objective-c %s 2>&1  | FileCheck %s3// RUN: not %clang_cc1  -triple x86_64-apple-darwin10  -fdiagnostics-parseable-fixits -x objective-c++ %s 2>&1  | FileCheck %s4 5typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor:,CGColor))) CGColor *CGColorRef;6 7@interface NSColor8+ (NSColor *)colorWithCGColor:(CGColorRef)cgColor;9@property CGColorRef CGColor;10@end11 12@interface NSTextField13- (void)setBackgroundColor:(NSColor *)color;14- (NSColor *)backgroundColor;15@end16 17CGColorRef Test(NSTextField *textField, CGColorRef newColor) {18 newColor = textField.backgroundColor;19 return textField.backgroundColor;20}21// CHECK:{18:38-18:38}:".CGColor"22// CHECK:{19:34-19:34}:".CGColor"23