diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-22 15:37:00 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-22 15:37:00 +0000 |
| commit | 46e14f8108551b8c98397e389e296ebafbfafffd (patch) | |
| tree | 0d0f448713b017eb56756eef39ab34d0173efdb4 /clang/test/Parser | |
| parent | a6c8cc307b0fdc7a975e03f1272afccb1f2440ae (diff) | |
| download | bcm5719-llvm-46e14f8108551b8c98397e389e296ebafbfafffd.tar.gz bcm5719-llvm-46e14f8108551b8c98397e389e296ebafbfafffd.zip | |
objective-c: improve diagnostic when collection expression is
not a pointer to a fast-enumerable object. // rdar://11488666
llvm-svn: 158998
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/objc-forcollection-neg.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/objc-forcollection-neg.m b/clang/test/Parser/objc-forcollection-neg.m index 1a989a14464..9e5400c5f2e 100644 --- a/clang/test/Parser/objc-forcollection-neg.m +++ b/clang/test/Parser/objc-forcollection-neg.m @@ -26,12 +26,12 @@ typedef struct objc_object { int i=0; for (int * elem in elem) // expected-error {{selector element type 'int *' is not a valid object}} \ - expected-error {{collection expression type 'int *' is not a valid object}} + expected-error {{the type 'int *' is not a pointer to a fast-enumerable object}} ++i; for (i in elem) // expected-error {{use of undeclared identifier 'elem'}} \ expected-error {{selector element type 'int' is not a valid object}} ++i; - for (id se in i) // expected-error {{collection expression type 'int' is not a valid object}} + for (id se in i) // expected-error {{the type 'int' is not a pointer to a fast-enumerable object}} ++i; } @end |

