[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenObjC / getter-property-mismatch.m
blobe4a8bf84df3d56a8517708f2bd1bf2919f6eb586
1 // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
3 @interface NSDictionary @end
4 @interface NSMutableDictionary : NSDictionary@end@interface CalDAVAddManagedAttachmentsTaskGroup {
5     NSMutableDictionary *_filenamesToServerLocation; 
7 - (NSDictionary *)filenamesToServerLocation;
8 @property (readwrite, retain) NSMutableDictionary *filenamesToServerLocation;
9 @end 
11 @implementation CalDAVAddManagedAttachmentsTaskGroup
12 @synthesize filenamesToServerLocation=_filenamesToServerLocation;
13 @end
15 // CHECK:  [[CALL:%.*]] = tail call ptr @objc_getProperty
16 // CHECK:  ret ptr [[CALL:%.*]]