blob: 85ead11d2fabe19109846e8800ea2199f455b9eb [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %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 Jahanian43aa1c32012-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 Jahaniane61a1d42010-02-10 20:18:25 +00005// radar 7630551
6
Fariborz Jahanian8b08adb2012-05-03 21:44:12 +00007typedef unsigned long size_t;
Fariborz Jahaniane61a1d42010-02-10 20:18:25 +00008void f(void (^b)(char c));
9
10@interface a
11- (void)processStuff;
12@end
13
14@implementation a
15- (void)processStuff {
16 f(^(char x) { });
17}
18@end
19
20@interface b
21- (void)processStuff;
22@end
23
24@implementation b
25- (void)processStuff {
26 f(^(char x) { });
27}
28@end