[cfe-commits] r155664 - /cfe/trunk/test/CodeGenObjC/getter-property-mismatch.m
Fariborz Jahanian
fjahanian at apple.com
Thu Apr 26 14:34:02 PDT 2012
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
+
+ at interface NSDictionary @end
+ at interface NSMutableDictionary : NSDictionary at end@interface CalDAVAddManagedAttachmentsTaskGroup {
+ NSMutableDictionary *_filenamesToServerLocation;
+}
+- (NSDictionary *)filenamesToServerLocation;
+ at property (readwrite, retain) NSMutableDictionary *filenamesToServerLocation;
+ at end
+
+ at implementation CalDAVAddManagedAttachmentsTaskGroup
+ at synthesize filenamesToServerLocation=_filenamesToServerLocation;
+ at 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]]
+
More information about the cfe-commits
mailing list