diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-21 22:38:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-21 22:38:46 +0000 |
| commit | 41b869477718ab70a696fbb6911b6020fd53f11b (patch) | |
| tree | 9bf8cbb6916cd3f7da7bcc12fb2180e5f86d1dd1 /clang/test/Sema/block-misc.c | |
| parent | 35f875c136cc90528e8d21e11b4873d7ebfa0a15 (diff) | |
| download | bcm5719-llvm-41b869477718ab70a696fbb6911b6020fd53f11b.tar.gz bcm5719-llvm-41b869477718ab70a696fbb6911b6020fd53f11b.zip | |
Fix rdar://6814047, a crash on invalid in blocks code I noticed when
working on the previous fix.
llvm-svn: 69742
Diffstat (limited to 'clang/test/Sema/block-misc.c')
| -rw-r--r-- | clang/test/Sema/block-misc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/test/Sema/block-misc.c b/clang/test/Sema/block-misc.c index 8775aa752ac..bef2662bbcd 100644 --- a/clang/test/Sema/block-misc.c +++ b/clang/test/Sema/block-misc.c @@ -112,6 +112,13 @@ void test11(int i) { ^{ break; }(); // expected-error {{'break' statement not in loop or switch statement}} } + +void (^test12f)(void); +void test12() { + test12f = ^test12f; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}} +} + + // rdar://6808730 void *test13 = ^{ int X = 32; @@ -131,9 +138,3 @@ void test14() { }; }; } - -void (^test12f)(void); -void test12() { - test12f = ^test12f; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}} -} - |

