summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/block-args.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/block-args.c')
-rw-r--r--clang/test/Sema/block-args.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/block-args.c b/clang/test/Sema/block-args.c
index e2e2d8e4462..5ee383eebb0 100644
--- a/clang/test/Sema/block-args.c
+++ b/clang/test/Sema/block-args.c
@@ -40,3 +40,8 @@ void test4() {
int (^f)() = ^((x)) { }; // expected-error {{expected ')'}} expected-warning {{type specifier missing}} expected-note {{to match this}}
}
+// rdar://problem/9170609
+void test5_helper(void (^)(int, int[*]));
+void test5(void) {
+ test5_helper(^(int n, int array[n]) {});
+}
OpenPOWER on IntegriCloud