blob: 03c84cfce33646acb15ee9cc95850500e260fb45 [file] [log] [blame]
Fariborz Jahanian4ad56862011-06-20 20:54:42 +00001// // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -verify %s
2// rdar://9744349
3
4typedef const struct __CFString * CFStringRef;
5
6@interface I
7@property CFStringRef P;
8@end
9
10@implementation I
11@synthesize P;
12- (id) Meth {
13 I* p1 = (id)[p1 P];
14 id p2 = (__bridge_transfer id)[p1 P];
15 id p3 = (__bridge I*)[p1 P];
16 return (id) p1.P;
17}
18@end