1 | typedef int (^BlockTy)(void); |
---|---|
2 | |
3 | struct S0 { |
4 | int a; |
5 | }; |
6 | |
7 | struct S { |
8 | int i; |
9 | void func(BlockTy __attribute__((noescape))); |
10 | int foo(S0 &); |
11 | |
12 | void m() { |
13 | __block S0 x; |
14 | func(^{ return foo(x); }); |
15 | } |
16 | }; |
17 |
1 | typedef int (^BlockTy)(void); |
---|---|
2 | |
3 | struct S0 { |
4 | int a; |
5 | }; |
6 | |
7 | struct S { |
8 | int i; |
9 | void func(BlockTy __attribute__((noescape))); |
10 | int foo(S0 &); |
11 | |
12 | void m() { |
13 | __block S0 x; |
14 | func(^{ return foo(x); }); |
15 | } |
16 | }; |
17 |