John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 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 | ||||
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 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 | } |