mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
e65b086e07
NSNumber, and boolean literals. This includes both Sema and Codegen support. Included is also support for new Objective-C container subscripting. My apologies for the large patch. It was very difficult to break apart. The patch introduces changes to the driver as well to cause clang to link in additional runtime support when needed to support the new language features. Docs are forthcoming to document the implementation and behavior of these features. llvm-svn: 152137
27 lines
523 B
Objective-C
27 lines
523 B
Objective-C
@protocol P @end
|
|
|
|
@interface NSMutableArray
|
|
- (id)objectAtIndexedSubscript:(unsigned int)index;
|
|
- (void)setObject:(id)object atIndexedSubscript:(unsigned int)index;
|
|
@end
|
|
|
|
@interface NSMutableDictionary
|
|
- (id)objectForKeyedSubscript:(id)key;
|
|
- (void)setObject:(id)object forKeyedSubscript:(id)key;
|
|
@end
|
|
|
|
void all() {
|
|
NSMutableArray *array;
|
|
id oldObject = array[10];
|
|
|
|
array[10] = oldObject;
|
|
|
|
NSMutableDictionary *dictionary;
|
|
id key;
|
|
id newObject;
|
|
oldObject = dictionary[key];
|
|
|
|
dictionary[key] = newObject;
|
|
}
|
|
|