diff options
| author | Steve Naroff <snaroff@apple.com> | 2008-08-27 16:04:49 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2008-08-27 16:04:49 +0000 |
| commit | ec33ed9ced52101dc26bcc8848711ae47d559e75 (patch) | |
| tree | 1b86aacfd191866daf33a4b0cbe9c32ccd1e1a24 /clang/test | |
| parent | 539f74c87de862e197318a214390a9f948528cf6 (diff) | |
| download | bcm5719-llvm-ec33ed9ced52101dc26bcc8848711ae47d559e75.tar.gz bcm5719-llvm-ec33ed9ced52101dc26bcc8848711ae47d559e75.zip | |
First wave of changes to support "blocks" (an extension to C).
This commit adds the declaration syntax (and associated type).
llvm-svn: 55417
Diffstat (limited to 'clang/test')
| -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; +} + |

