aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-25 01:57:42 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-25 01:57:42 +0000
commit63787f0343ab3546a5346a833e2f7485779f17e2 (patch)
treef67dc23d5a8a831ef2757b043146c5414f66cc45 /test/ARCMT
parenta66eccbf1f26a2a48c59b6e733dde9c79c19f0df (diff)
[arcmt] GC migrator: don't try to remove redundant __strong, it does
more harm than good. Fixes rdar://10522805&10521433 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r--test/ARCMT/GC-no-arc-runtime.m4
-rw-r--r--test/ARCMT/GC-no-arc-runtime.m.result4
-rw-r--r--test/ARCMT/GC-no-finalize-removal.m4
-rw-r--r--test/ARCMT/GC-no-finalize-removal.m.result4
-rw-r--r--test/ARCMT/GC.m9
-rw-r--r--test/ARCMT/GC.m.result9
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) {
+ }
+}