]> granicus.if.org Git - clang/commitdiff
Fix typo in my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Mar 2012 21:13:53 +0000 (21:13 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Mar 2012 21:13:53 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153602 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/objc-container-subscripting-2.m
test/SemaObjCXX/objc-container-subscripting.mm

index 2b8d0b774c04316b5ee7880c18292bb081cf9a6b..bdaac9c26a898e52b6c3411288042958486f58bf 100644 (file)
@@ -3779,7 +3779,7 @@ def err_objc_multiple_subscript_type_conversion : Error<
   "indexing expression is invalid because subscript type %0 has "
   "multiple type conversion functions">;
 def err_objc_subscript_type_conversion : Error<
-  "indexing expression is invalid because subscript type %0 is not an intergal"
+  "indexing expression is invalid because subscript type %0 is not an integral"
   " or objective-C pointer type">;
 def err_objc_subscript_pointer : Error<
   "indexing expression is invalid because subscript type %0 is not an"
index 45f82e5c746954d25b94cc48c9299f7cef940a42..3c0081b72a7605555274b3582878f37a71ac8d7e 100644 (file)
@@ -16,8 +16,8 @@ typedef unsigned int size_t;
 id func() {
   NSMutableArray *array;
   float f; 
-  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}}
+  array[f] = array; // expected-error {{indexing expression is invalid because subscript type 'float' is not an integral or objective-C pointer type}}
+  return array[3.14]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}}
 }
 
 void test_unused() {
index 7591c3b0986b93479de2a1bee54e0024f69150c1..c835cbe53c61f28d8fa4765595e52b42ed69ba0f 100644 (file)
@@ -32,8 +32,8 @@ template void test_dictionary_subscripts(NSMutableDictionary*, id, int); // expe
 
 template<typename T, typename U, typename O>
 void test_array_subscripts(T base, U index, O obj) {
-  base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}}
-  obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an intergal or objective-C pointer type}}
+  base[index] = obj; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}}
+  obj = base[index]; // expected-error {{indexing expression is invalid because subscript type 'double' is not an integral or objective-C pointer type}}
 }
 
 template void  test_array_subscripts(NSMutableArray *, int, id);