aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/arc-unbridged-cast.m
blob: 03c84cfce33646acb15ee9cc95850500e260fb45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -verify %s
// rdar://9744349

typedef const struct __CFString * CFStringRef;

@interface I 
@property CFStringRef P;
@end

@implementation I
@synthesize P;
- (id) Meth {
    I* p1 = (id)[p1 P];
    id p2 = (__bridge_transfer id)[p1 P];
    id p3 = (__bridge I*)[p1 P];
    return (id) p1.P;
}
@end