1*0a6a1f1dSLionel Sambuc// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s 2*0a6a1f1dSLionel Sambuc// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s 3*0a6a1f1dSLionel Sambuc// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c++ %s 2>&1 | FileCheck %s 4*0a6a1f1dSLionel Sambuc// rdar://15517899 5*0a6a1f1dSLionel Sambuc 6*0a6a1f1dSLionel Sambuctypedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor:,CGColor))) CGColor *CGColorRef; 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc@interface NSColor 9*0a6a1f1dSLionel Sambuc+ (NSColor *)colorWithCGColor:(CGColorRef)cgColor; 10*0a6a1f1dSLionel Sambuc@property CGColorRef CGColor; 11*0a6a1f1dSLionel Sambuc@end 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc@interface NSTextField 14*0a6a1f1dSLionel Sambuc- (void)setBackgroundColor:(NSColor *)color; 15*0a6a1f1dSLionel Sambuc- (NSColor *)backgroundColor; 16*0a6a1f1dSLionel Sambuc@end 17*0a6a1f1dSLionel Sambuc 18*0a6a1f1dSLionel SambucCGColorRef Test(NSTextField *textField, CGColorRef newColor) { 19*0a6a1f1dSLionel Sambuc newColor = textField.backgroundColor; 20*0a6a1f1dSLionel Sambuc return textField.backgroundColor; 21*0a6a1f1dSLionel Sambuc} 22*0a6a1f1dSLionel Sambuc// CHECK:{19:38-19:38}:".CGColor" 23*0a6a1f1dSLionel Sambuc// CHECK:{20:34-20:34}:".CGColor" 24