Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/objc_container.h @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 @protocol P @end | |
2 | |
3 @interface NSMutableArray | |
4 - (id)objectAtIndexedSubscript:(unsigned int)index; | |
5 - (void)setObject:(id)object atIndexedSubscript:(unsigned int)index; | |
6 @end | |
7 | |
8 @interface NSMutableDictionary | |
9 - (id)objectForKeyedSubscript:(id)key; | |
10 - (void)setObject:(id)object forKeyedSubscript:(id)key; | |
11 @end | |
12 | |
13 void all() { | |
14 NSMutableArray *array; | |
15 id oldObject = array[10]; | |
16 | |
17 array[10] = oldObject; | |
18 | |
19 NSMutableDictionary *dictionary; | |
20 id key; | |
21 id newObject; | |
22 oldObject = dictionary[key]; | |
23 | |
24 dictionary[key] = newObject; | |
25 } | |
26 |