diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/scope-check.c | 8 | ||||
| -rw-r--r-- | clang/test/SemaObjC/scope-check-try-catch.m | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/Sema/scope-check.c b/clang/test/Sema/scope-check.c index 20cecbf3f30..d09ad9c5d55 100644 --- a/clang/test/Sema/scope-check.c +++ b/clang/test/Sema/scope-check.c @@ -22,3 +22,11 @@ int test3() { L: return a; } + +int test4(int x) { + goto L; // expected-error{{illegal jump}} + int a[x]; + test4(x); + L: + return sizeof a; +} diff --git a/clang/test/SemaObjC/scope-check-try-catch.m b/clang/test/SemaObjC/scope-check-try-catch.m index d01dba0778a..2aac497784e 100644 --- a/clang/test/SemaObjC/scope-check-try-catch.m +++ b/clang/test/SemaObjC/scope-check-try-catch.m @@ -17,10 +17,12 @@ L3: ; } } +#if 0 +// FIXME void f0(int a) { if (a) goto L0; @try {} @finally {} L0: return; } - +#endif |

