diff options
Diffstat (limited to 'clang/test/Parser/block-pointer-decl.c')
-rw-r--r-- | clang/test/Parser/block-pointer-decl.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Parser/block-pointer-decl.c b/clang/test/Parser/block-pointer-decl.c new file mode 100644 index 00000000000..eb7ebcb4027 --- /dev/null +++ b/clang/test/Parser/block-pointer-decl.c @@ -0,0 +1,18 @@ +// RUN: clang -fsyntax-only -verify -parse-noop %s + +struct blockStruct { + int (^a)(float, int); + int b; +}; + +int blockTaker (int (^myBlock)(int), int other_input) +{ + return 0; +} + +int main (int argc, char **argv) +{ + int (^blockptr) (int); + return 0; +} + |