minix/external/bsd/llvm/dist/clang/test/CodeGenObjC/getter-property-mismatch.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

20 lines
754 B
Objective-C

// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
// rdar://11323676
@interface NSDictionary @end
@interface NSMutableDictionary : NSDictionary@end@interface CalDAVAddManagedAttachmentsTaskGroup {
NSMutableDictionary *_filenamesToServerLocation;
}
- (NSDictionary *)filenamesToServerLocation;
@property (readwrite, retain) NSMutableDictionary *filenamesToServerLocation;
@end
@implementation CalDAVAddManagedAttachmentsTaskGroup
@synthesize filenamesToServerLocation=_filenamesToServerLocation;
@end
// CHECK: [[CALL:%.*]] = call i8* @objc_getProperty
// CHECK: [[ONE:%.*]] = bitcast i8* [[CALL:%.*]] to [[T1:%.*]]*
// CHECK: [[TWO:%.*]] = bitcast [[T1]]* [[ONE]] to [[T2:%.*]]*
// CHECK: ret [[T2]]* [[TWO]]