]> granicus.if.org Git - clang/commitdiff
ObjectiveC migrator: Another test for my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 24 Sep 2013 20:31:24 +0000 (20:31 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 24 Sep 2013 20:31:24 +0000 (20:31 +0000)
// rdar://15044991

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191334 91177308-0d34-0410-b5e6-96231b3b80d8

test/ARCMT/objcmt-ns-returns-inner-pointer.m
test/ARCMT/objcmt-ns-returns-inner-pointer.m.result

index d046317b1b450237dae90de541d247a49eafb75d..42cbdb8e5167ec117140c8942abf95ffd8ab812c 100644 (file)
@@ -80,6 +80,7 @@ typedef struct CGImage *CGImageRef;
 typedef struct OpaqueJSValue* JSObjectRef;
 
 typedef JSObjectRef TTJSObjectRef;
+typedef unsigned int NSUInteger;
 
 CF_IMPLICIT_BRIDGING_DISABLED
 
@@ -121,4 +122,6 @@ typedef void *SecTrustRef;
 
 - (SecTrustRef) FOO1 NS_AVAILABLE;
 
+// pointer personality functions
+@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
 @end
index 8331e1669b1247f604b28fdf349bf4a1db215b1a..4980cfbb2d1523bd1a2e563c226081573bbe3c09 100644 (file)
@@ -80,6 +80,7 @@ typedef struct CGImage *CGImageRef;
 typedef struct OpaqueJSValue* JSObjectRef;
 
 typedef JSObjectRef TTJSObjectRef;
+typedef unsigned int NSUInteger;
 
 CF_IMPLICIT_BRIDGING_DISABLED
 
@@ -121,4 +122,6 @@ typedef void *SecTrustRef;
 
 - (SecTrustRef) FOO1 NS_AVAILABLE NS_RETURNS_INNER_POINTER;
 
+// pointer personality functions
+@property NSUInteger (* NS_RETURNS_INNER_POINTER hashFunction)(const void *item, NSUInteger (*size)(const void *item));
 @end