Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s
      2 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s
      3 
      4 struct X {
      5   __unsafe_unretained id object;
      6   int (^ __unsafe_unretained block)(int, int);
      7 };
      8 
      9 void f(struct X x) {
     10   x.object = 0;
     11   x.block = ^(int x, int y) { return x + y; };
     12 }
     13