Author: fjahanian
Date: Thu Apr 26 16:34:02 2012
New Revision: 155664
URL: http://llvm.org/viewvc/llvm-project?rev=155664&view=rev
Log:
Test case for previosu patch.
// rdar://11323676
Added:
cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m
Added: cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m?rev=155664&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m (added)
+++ cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m Thu Apr 26 16:34:02
2012
@@ -0,0 +1,20 @@
+// 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]]
+
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits