1 // RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o %t %t-rw.cpp
4 void *sel_registerName(const char *);
12 - (void)enumerateProvidersWithBlock:(void (^)(void))block {
16 - (void)providerEnumerator {
17 ^(void (^providerBlock)(void)) {
18 [self enumerateProvidersWithBlock:providerBlock];
22 - (void)testNilBlock {
23 [self enumerateProvidersWithBlock:0];
30 int main(int argc, char *argv[]) {