annotate clang/test/Rewriter/rewrite-unique-block-api.mm @ 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 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
anatofuz
parents:
diff changeset
4 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
anatofuz
parents:
diff changeset
5 // radar 7630551
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 typedef unsigned long size_t;
anatofuz
parents:
diff changeset
8 void f(void (^b)(char c));
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 @interface a
anatofuz
parents:
diff changeset
11 - (void)processStuff;
anatofuz
parents:
diff changeset
12 @end
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 @implementation a
anatofuz
parents:
diff changeset
15 - (void)processStuff {
anatofuz
parents:
diff changeset
16 f(^(char x) { });
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18 @end
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 @interface b
anatofuz
parents:
diff changeset
21 - (void)processStuff;
anatofuz
parents:
diff changeset
22 @end
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 @implementation b
anatofuz
parents:
diff changeset
25 - (void)processStuff {
anatofuz
parents:
diff changeset
26 f(^(char x) { });
anatofuz
parents:
diff changeset
27 }
anatofuz
parents:
diff changeset
28 @end