Fix the clang-wpa example.
[clang.git] / test / Rewriter / rewrite-unique-block-api.mm
blob130f51436542f0c4abc80f49860513381decec25
1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3 // radar 7630551
5 void f(void (^b)(char c));
7 @interface a
8 - (void)processStuff;
9 @end
11 @implementation a
12 - (void)processStuff {
13     f(^(char x) { });
15 @end
17 @interface b
18 - (void)processStuff;
19 @end
21 @implementation b
22 - (void)processStuff {
23     f(^(char x) { });
25 @end