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

