diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-11 17:55:15 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-11 17:55:15 +0000 |
| commit | aae4349df9ac74d2e5b70117002dcda56254d3ea (patch) | |
| tree | e3ebd70059c98c77d1d54069eded187de701e8b6 /clang/test/CodeGen | |
| parent | 9edfeed6b8e15ca8745933a53a54637c7e57ea94 (diff) | |
| download | bcm5719-llvm-aae4349df9ac74d2e5b70117002dcda56254d3ea.tar.gz bcm5719-llvm-aae4349df9ac74d2e5b70117002dcda56254d3ea.zip | |
Fixes a ir-gen crash for K&R style blocks.
llvm-svn: 68865
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/kr-style-block.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/kr-style-block.c b/clang/test/CodeGen/kr-style-block.c new file mode 100644 index 00000000000..ccaa2c51440 --- /dev/null +++ b/clang/test/CodeGen/kr-style-block.c @@ -0,0 +1,12 @@ +// RUN: clang-cc -emit-llvm %s -o %t + +void foo (void(^)()); + +int main() +{ +foo( + ^() + { + } +); +} |

