add a testcase for recursion through blocks pointers, rdar://6676764.

llvm-svn: 66965
This commit is contained in:
Chris Lattner 2009-03-13 22:00:25 +00:00
parent 4482c0518b
commit 622b1041ca
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// RUN: clang -emit-llvm -fblocks -S -o - %s
// rdar://6676764
struct S {
void (^F)(struct S*);
} P;
@interface T
- (int)foo: (T (^)(T*)) x;
@end
void foo(T *P) {
[P foo: 0];
}