Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %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 // radar 7630551
      4 
      5 void f(void (^b)(char c));
      6 
      7 @interface a
      8 - (void)processStuff;
      9 @end
     10 
     11 @implementation a
     12 - (void)processStuff {
     13     f(^(char x) { });
     14 }
     15 @end
     16 
     17 @interface b
     18 - (void)processStuff;
     19 @end
     20 
     21 @implementation b
     22 - (void)processStuff {
     23     f(^(char x) { });
     24 }
     25 @end
     26