blob: 2c0c4a9094dbb7e03dad4922234d42688dc97fe8 [file] [log] [blame]
Fariborz Jahanian9e0393d2012-02-04 19:06:06 +00001// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %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