diff options
Diffstat (limited to 'test/SemaObjC/arc.m')
-rw-r--r-- | test/SemaObjC/arc.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/arc.m b/test/SemaObjC/arc.m index 54a7db7..60bd673 100644 --- a/test/SemaObjC/arc.m +++ b/test/SemaObjC/arc.m @@ -293,8 +293,8 @@ void test12(id collection) { x = 0; // expected-error {{fast enumeration variables can't be modified in ARC by default; declare the variable __strong to allow this}} } - for (const id x in collection) { - x = 0; // expected-error {{read-only variable is not assignable}} + for (const id x in collection) { // expected-note {{variable 'x' declared const here}} + x = 0; // expected-error {{cannot assign to variable 'x' with const-qualified type 'const __strong id'}} } for (__strong id x in collection) { |