summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/for-in.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/for-in.m')
-rw-r--r--test/CodeGenObjC/for-in.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenObjC/for-in.m b/test/CodeGenObjC/for-in.m
index 7e6098a..26fe792 100644
--- a/test/CodeGenObjC/for-in.m
+++ b/test/CodeGenObjC/for-in.m
@@ -42,3 +42,9 @@ void t1() {
break;
}
}
+
+// rdar://problem/9027663
+void t2(NSArray *array) {
+ for (NSArray *array in array) { // expected-warning {{collection expression type 'NSArray *' may not respond}}
+ }
+}
OpenPOWER on IntegriCloud