annotate clang/test/Rewriter/objc-ivar-receiver-1.m @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - | grep 'newInv->_container'
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @interface NSMutableArray
anatofuz
parents:
diff changeset
5 - (void)addObject:(id)addObject;
anatofuz
parents:
diff changeset
6 @end
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @interface NSInvocation {
anatofuz
parents:
diff changeset
9 @private
anatofuz
parents:
diff changeset
10 id _container;
anatofuz
parents:
diff changeset
11 }
anatofuz
parents:
diff changeset
12 + (NSInvocation *)invocationWithMethodSignature;
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 @end
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 @implementation NSInvocation
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 + (NSInvocation *)invocationWithMethodSignature {
anatofuz
parents:
diff changeset
19 NSInvocation *newInv;
anatofuz
parents:
diff changeset
20 id obj = newInv->_container;
anatofuz
parents:
diff changeset
21 [newInv->_container addObject:0];
anatofuz
parents:
diff changeset
22 return 0;
anatofuz
parents:
diff changeset
23 }
anatofuz
parents:
diff changeset
24 @end