Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
      2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
      3 // 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
      5 // radar 7630551
      6 
      7 void 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
     28