2009-12-15 01:47:10 +08:00
|
|
|
// RUN: clang -cc1 -rewrite-objc %s -o -
|
|
|
|
// RUN: clang -cc1 -rewrite-objc %s -o - | grep 'newInv->_container'
|
2008-01-24 04:34:40 +08:00
|
|
|
|
|
|
|
@interface NSMutableArray
|
|
|
|
- (void)addObject:(id)addObject;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSInvocation {
|
|
|
|
@private
|
|
|
|
id _container;
|
|
|
|
}
|
|
|
|
+ (NSInvocation *)invocationWithMethodSignature;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSInvocation
|
|
|
|
|
|
|
|
+ (NSInvocation *)invocationWithMethodSignature {
|
|
|
|
NSInvocation *newInv;
|
2008-03-13 07:15:19 +08:00
|
|
|
id obj = newInv->_container;
|
2008-01-24 04:34:40 +08:00
|
|
|
[newInv->_container addObject:0];
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@end
|