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 // expected-no-diagnostics 4 5 struct X { 6 __unsafe_unretained id object; 7 int (^ __unsafe_unretained block)(int, int); 8 }; 9 10 void f(struct X x) { 11 x.object = 0; 12 x.block = ^(int x, int y) { return x + y; }; 13 } 14