[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / objc_container.h
blob51f42d146ce25956729daad5e5aa57cc3875050d
1 @protocol P @end
3 @interface NSMutableArray
4 - (id)objectAtIndexedSubscript:(unsigned int)index;
5 - (void)setObject:(id)object atIndexedSubscript:(unsigned int)index;
6 @end
8 @interface NSMutableDictionary
9 - (id)objectForKeyedSubscript:(id)key;
10 - (void)setObject:(id)object forKeyedSubscript:(id)key;
11 @end
13 void all(void) {
14 NSMutableArray *array;
15 id oldObject = array[10];
17 array[10] = oldObject;
19 NSMutableDictionary *dictionary;
20 id key;
21 id newObject;
22 oldObject = dictionary[key];
24 dictionary[key] = newObject;