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