diff options
Diffstat (limited to 'test/CodeGenObjC/for-in.m')
-rw-r--r-- | test/CodeGenObjC/for-in.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenObjC/for-in.m b/test/CodeGenObjC/for-in.m index 7e6098a7eb573..26fe7922aee9f 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}} + } +} |