blob: a6c5f985df8f37b22a9b454546d9ab4628c4d65e [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s
2// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s
John McCallf85e1932011-06-15 23:02:42 +00003
4struct X {
5 __unsafe_unretained id object;
6 int (^ __unsafe_unretained block)(int, int);
7};
8
9void f(struct X x) {
10 x.object = 0;
11 x.block = ^(int x, int y) { return x + y; };
12}