forked from OSchip/llvm-project
add a testcase for recursion through blocks pointers, rdar://6676764.
llvm-svn: 66965
This commit is contained in:
parent
4482c0518b
commit
622b1041ca
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue