diff options
Diffstat (limited to 'test/ARCMT')
-rw-r--r-- | test/ARCMT/GC-no-arc-runtime.m | 4 | ||||
-rw-r--r-- | test/ARCMT/GC-no-arc-runtime.m.result | 4 | ||||
-rw-r--r-- | test/ARCMT/GC-no-finalize-removal.m | 4 | ||||
-rw-r--r-- | test/ARCMT/GC-no-finalize-removal.m.result | 4 | ||||
-rw-r--r-- | test/ARCMT/GC.m | 9 | ||||
-rw-r--r-- | test/ARCMT/GC.m.result | 9 |
6 files changed, 16 insertions, 18 deletions
diff --git a/test/ARCMT/GC-no-arc-runtime.m b/test/ARCMT/GC-no-arc-runtime.m index ab9d6a4ae5..f0699927ed 100644 --- a/test/ARCMT/GC-no-arc-runtime.m +++ b/test/ARCMT/GC-no-arc-runtime.m @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = NSMakeCollectable(cft); } -@interface I1 { - __strong I1 *myivar; -} +@interface I1 @end @implementation I1 diff --git a/test/ARCMT/GC-no-arc-runtime.m.result b/test/ARCMT/GC-no-arc-runtime.m.result index 983a5b1742..f55ca38070 100644 --- a/test/ARCMT/GC-no-arc-runtime.m.result +++ b/test/ARCMT/GC-no-arc-runtime.m.result @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = CFBridgingRelease(cft); } -@interface I1 { - I1 *myivar; -} +@interface I1 @end @implementation I1 diff --git a/test/ARCMT/GC-no-finalize-removal.m b/test/ARCMT/GC-no-finalize-removal.m index d9739376f2..14e8602446 100644 --- a/test/ARCMT/GC-no-finalize-removal.m +++ b/test/ARCMT/GC-no-finalize-removal.m @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = NSMakeCollectable(cft); } -@interface I1 { - __strong I1 *myivar; -} +@interface I1 @end @implementation I1 diff --git a/test/ARCMT/GC-no-finalize-removal.m.result b/test/ARCMT/GC-no-finalize-removal.m.result index 38aabc32ae..ea14873ec3 100644 --- a/test/ARCMT/GC-no-finalize-removal.m.result +++ b/test/ARCMT/GC-no-finalize-removal.m.result @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = CFBridgingRelease(cft); } -@interface I1 { - I1 *myivar; -} +@interface I1 @end @implementation I1 diff --git a/test/ARCMT/GC.m b/test/ARCMT/GC.m index f241e43008..eebbaf6854 100644 --- a/test/ARCMT/GC.m +++ b/test/ARCMT/GC.m @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = NSMakeCollectable(cft); } -@interface I1 { - __strong I1 *myivar; -} +@interface I1 @end @implementation I1 @@ -90,3 +88,8 @@ __attribute__((objc_arc_weak_reference_unavailable)) @implementation rdar10532449 @synthesize assign_prop, strong_readonly_prop, weak_prop; @end + +void test2(id p, __strong I1 *ap[]) { + for (__strong I1 *specRule in p) { + } +} diff --git a/test/ARCMT/GC.m.result b/test/ARCMT/GC.m.result index f9e954af5a..c2c523f77e 100644 --- a/test/ARCMT/GC.m.result +++ b/test/ARCMT/GC.m.result @@ -12,9 +12,7 @@ void test1(CFTypeRef *cft) { id x = CFBridgingRelease(cft); } -@interface I1 { - I1 *myivar; -} +@interface I1 @end @implementation I1 @@ -85,3 +83,8 @@ __attribute__((objc_arc_weak_reference_unavailable)) @implementation rdar10532449 @synthesize assign_prop, strong_readonly_prop, weak_prop; @end + +void test2(id p, __strong I1 *ap[]) { + for (__strong I1 *specRule in p) { + } +} |