blob: 130f51436542f0c4abc80f49860513381decec25 [file] [log] [blame]
Fariborz Jahaniane61a1d42010-02-10 20:18:25 +00001// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
Fariborz Jahanian0c7627c2010-02-16 22:27:50 +00002// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
Fariborz Jahaniane61a1d42010-02-10 20:18:25 +00003// radar 7630551
4
5void f(void (^b)(char c));
6
7@interface a
8- (void)processStuff;
9@end
10
11@implementation a
12- (void)processStuff {
13 f(^(char x) { });
14}
15@end
16
17@interface b
18- (void)processStuff;
19@end
20
21@implementation b
22- (void)processStuff {
23 f(^(char x) { });
24}
25@end