Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi  %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
      3 // radar 7987817
      4 
      5 void *sel_registerName(const char *);
      6 
      7 @interface Test {
      8 }
      9 @end
     10 
     11 @implementation Test
     12 
     13 - (void)enumerateProvidersWithBlock:(void (^)(void))block {
     14     block();
     15 }
     16 
     17 - (void)providerEnumerator {
     18     ^(void (^providerBlock)(void)) {
     19         [self enumerateProvidersWithBlock:providerBlock];
     20     };
     21 }
     22 
     23 - (void)testNilBlock {
     24     [self enumerateProvidersWithBlock:0];
     25 }
     26 
     27 @end
     28 
     29 
     30 
     31 int main(int argc, char *argv[]) {
     32     return 0;
     33 }
     34