aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/objc-container-subscripting-2.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/objc-container-subscripting-2.m')
-rw-r--r--test/SemaObjC/objc-container-subscripting-2.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/objc-container-subscripting-2.m b/test/SemaObjC/objc-container-subscripting-2.m
index 2564975f4d..45f82e5c74 100644
--- a/test/SemaObjC/objc-container-subscripting-2.m
+++ b/test/SemaObjC/objc-container-subscripting-2.m
@@ -16,8 +16,8 @@ typedef unsigned int size_t;
id func() {
NSMutableArray *array;
float f;
- array[f] = array; // expected-error {{expected method to write dictionary element not found on object of type 'NSMutableArray *'}}
- return array[3.14]; // expected-error {{expected method to read dictionary element not found on object of type 'NSMutableArray *'}}
+ array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an intergal or objective-C pointer type}}
+ return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}}
}
void test_unused() {