Chris Lattner | a66b4df | 2009-03-13 22:00:25 +0000 | [diff] [blame^] | 1 | // RUN: clang -emit-llvm -fblocks -S -o - %s |
2 | // rdar://6676764 | ||||
3 | |||||
4 | struct S { | ||||
5 | void (^F)(struct S*); | ||||
6 | } P; | ||||
7 | |||||
8 | |||||
9 | @interface T | ||||
10 | |||||
11 | - (int)foo: (T (^)(T*)) x; | ||||
12 | @end | ||||
13 | |||||
14 | void foo(T *P) { | ||||
15 | [P foo: 0]; | ||||
16 | } | ||||
17 |