1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s
2 // expected-no-diagnostics
4 int printf(char const *, ...);
11 int blockTaker (int (^myBlock
)(int), int other_input
)
13 return 5 * myBlock (other_input
);
16 int main (int argc
, char **argv
)
18 int (^blockptr
) (int) = ^(int inval
) {
19 printf ("Inputs: %d, %d.\n", argc
, inval
);
25 printf ("I got: %d.\n",
26 blockTaker (blockptr
, 6));