1// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
2// rdar://11323676
3
4@interface NSDictionary @end
5@interface NSMutableDictionary : NSDictionary@end@interface CalDAVAddManagedAttachmentsTaskGroup {
6    NSMutableDictionary *_filenamesToServerLocation;
7}
8- (NSDictionary *)filenamesToServerLocation;
9@property (readwrite, retain) NSMutableDictionary *filenamesToServerLocation;
10@end
11
12@implementation CalDAVAddManagedAttachmentsTaskGroup
13@synthesize filenamesToServerLocation=_filenamesToServerLocation;
14@end
15
16// CHECK:  [[CALL:%.*]] = tail call i8* @objc_getProperty
17// CHECK:  [[ONE:%.*]] = bitcast i8* [[CALL:%.*]] to [[T1:%.*]]*
18// CHECK:  [[TWO:%.*]] = bitcast [[T1]]* [[ONE]] to [[T2:%.*]]*
19// CHECK:  ret [[T2]]* [[TWO]]
20
21