[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Rewriter / objc-ivar-receiver-1.m
blob6cccf88d104cfc485c904565ab177db8188f2d24
1 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -
2 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o - | grep 'newInv->_container'
4 @interface NSMutableArray 
5 - (void)addObject:(id)addObject;
6 @end
8 @interface NSInvocation {
9 @private
10     id _container;
12 + (NSInvocation *)invocationWithMethodSignature;
14 @end
16 @implementation NSInvocation
18 + (NSInvocation *)invocationWithMethodSignature {
19     NSInvocation *newInv;
20     id obj = newInv->_container;
21     [newInv->_container addObject:0];
22    return 0;
24 @end