summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/objc-container-subscripting.m
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-08-15 20:02:54 +0000
committerdim <dim@FreeBSD.org>2012-08-15 20:02:54 +0000
commit554bcb69c2d785a011a30e7db87a36a87fe7db10 (patch)
tree9abb1a658a297776086f4e0dfa6ca533de02104e /test/SemaObjC/objc-container-subscripting.m
parentbb67ca86b31f67faee50bd10c3b036d65751745a (diff)
downloadFreeBSD-src-554bcb69c2d785a011a30e7db87a36a87fe7db10.zip
FreeBSD-src-554bcb69c2d785a011a30e7db87a36a87fe7db10.tar.gz
Vendor import of clang trunk r161861:
http://llvm.org/svn/llvm-project/cfe/trunk@161861
Diffstat (limited to 'test/SemaObjC/objc-container-subscripting.m')
-rw-r--r--test/SemaObjC/objc-container-subscripting.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SemaObjC/objc-container-subscripting.m b/test/SemaObjC/objc-container-subscripting.m
index 4125bc6..3bbd7d4 100644
--- a/test/SemaObjC/objc-container-subscripting.m
+++ b/test/SemaObjC/objc-container-subscripting.m
@@ -14,15 +14,15 @@ int main() {
NSMutableArray<P> * array;
id oldObject = array[10]; // expected-error {{method index parameter type 'double' is not integral type}}
array[3] = 0; // expected-error {{method index parameter type 'void *' is not integral type}} \
- // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'id *' is not an objective-C pointer type}}
+ // expected-error {{cannot assign to this array because assigning method's 2nd parameter of type 'id *' is not an Objective-C pointer type}}
I* iarray;
iarray[3] = 0; // expected-error {{expected method to write array element not found on object of type 'I *'}}
I* p = iarray[4]; // expected-error {{expected method to read array element not found on object of type 'I *'}}
- oldObject = array[10]++; // expected-error {{illegal operation on objective-c container subscripting}}
- oldObject = array[10]--; // expected-error {{illegal operation on objective-c container subscripting}}
- oldObject = --array[10]; // expected-error {{illegal operation on objective-c container subscripting}}
+ oldObject = array[10]++; // expected-error {{illegal operation on Objective-C container subscripting}}
+ oldObject = array[10]--; // expected-error {{illegal operation on Objective-C container subscripting}}
+ oldObject = --array[10]; // expected-error {{illegal operation on Objective-C container subscripting}}
}
@interface NSMutableDictionary
OpenPOWER on IntegriCloud