1 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c -fobjc-arc %s 2>&1 | FileCheck %s
2 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c++ -fobjc-arc %s 2>&1 | FileCheck %s
5 typedef struct __attribute__((objc_bridge_related(UIColor,colorWithCGColor:,CGColor))) CGColor *CGColorRef;
8 + (UIColor *)colorWithCGColor:(CGColorRef)cgColor;
13 @property(nonatomic,retain) UIColor *tintColor;
16 void test(UIButton *myButton) {
17 CGColorRef cgColor = (CGColorRef)myButton.tintColor;
18 cgColor = myButton.tintColor;
20 cgColor = (CGColorRef)[myButton.tintColor CGColor];
22 cgColor = (CGColorRef)[myButton tintColor];
25 // CHECK: {17:36-17:36}:"["
26 // CHECK: {17:54-17:54}:" CGColor]"
28 // CHECK: {18:13-18:13}:"["
29 // CHECK: {18:31-18:31}:" CGColor]"
31 // CHECK: {22:25-22:25}:"["
32 // CHECK: {22:45-22:45}:" CGColor]"
34 @interface ImplicitPropertyTest
35 - (UIColor *)tintColor;
38 void test1(ImplicitPropertyTest *myImplicitPropertyTest) {
39 CGColorRef cgColor = (CGColorRef)[myImplicitPropertyTest tintColor];
42 // CHECK: {39:36-39:36}:"["
43 // CHECK: {39:70-39:70}:" CGColor]"