1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s 3*f4a2713aSLionel Sambuc// expected-no-diagnostics 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambucstruct X { 6*f4a2713aSLionel Sambuc __unsafe_unretained id object; 7*f4a2713aSLionel Sambuc int (^ __unsafe_unretained block)(int, int); 8*f4a2713aSLionel Sambuc}; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambucvoid f(struct X x) { 11*f4a2713aSLionel Sambuc x.object = 0; 12*f4a2713aSLionel Sambuc x.block = ^(int x, int y) { return x + y; }; 13*f4a2713aSLionel Sambuc} 14