Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks
      2 
      3 @interface Whatever
      4 - copy;
      5 @end
      6 
      7 typedef long (^MyBlock)(id obj1, id obj2);
      8 
      9 void foo(MyBlock b) {
     10     id bar = [b copy];
     11 }
     12 
     13 void foo2(id b) {
     14 }
     15 
     16 void foo3(void (^block)(void)) {
     17     foo2(block);
     18     id x;
     19     foo(x);
     20 }
     21