brintos

brintos / llvm-project-archived public Read only

0
0
Text · 717 B · 5058fbd Raw
28 lines · plain
1// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp2// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp4// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp5 6typedef unsigned long size_t;7void f(void (^b)(char c));8 9@interface a10- (void)processStuff;11@end12 13@implementation a14- (void)processStuff {15    f(^(char x) { });16}17@end18 19@interface b20- (void)processStuff;21@end22 23@implementation b24- (void)processStuff {25    f(^(char x) { });26}27@end28