1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 + (NSNumber *)numberWithChar:(char)value;
6 + (NSNumber *)numberWithInt:(int)value;
9 @protocol NSCopying @end
10 typedef unsigned long NSUInteger;
11 typedef long NSInteger;
13 @interface NSDictionary
14 + (id)dictionaryWithObjects:(const id [])objects forKeys:(const id <NSCopying> [])keys count:(NSUInteger)cnt;
15 - (void)setObject:(id)object forKeyedSubscript:(id)key;
18 @interface NSString<NSCopying>
22 - (id)objectAtIndexedSubscript:(NSInteger)index;
23 - (void)setObject:(id)object atIndexedSubscript:(NSInteger)index;
27 NSDictionary *dict = @{ @"name":@666 };
30 dict["name"] = @666; // expected-error {{indexing expression is invalid because subscript type 'char *' is not an Objective-C pointer}}