blob: 1dcc1b67fe7bda7572e1ee44b8a48e182286e110 [file] [log] [blame]
Fariborz Jahanian42d05f22012-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 Jahaniancf01cbe2010-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 Jahaniancc172282012-04-16 22:14:01 +00003// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
4// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
Fariborz Jahanianc3bdefa2010-02-10 20:18:25 +00005// radar 7630551
6
7void f(void (^b)(char c));
8
9@interface a
10- (void)processStuff;
11@end
12
13@implementation a
14- (void)processStuff {
15 f(^(char x) { });
16}
17@end
18
19@interface b
20- (void)processStuff;
21@end
22
23@implementation b
24- (void)processStuff {
25 f(^(char x) { });
26}
27@end