diff options
author | Steve Naroff <snaroff@apple.com> | 2009-04-15 16:58:41 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-04-15 16:58:41 +0000 |
commit | 1b6823d48da16b64cfb13d818860a21472183ca0 (patch) | |
tree | b70ad07d19f38f1aa7de4dba65bb188307b158c0 /test/Sema/scope-check.c | |
parent | 8a941e0c71d318430648e24eeca91a464a46eba9 (diff) |
Revert previous patch (will commit a fix soon).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/scope-check.c')
-rw-r--r-- | test/Sema/scope-check.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c index 20cecbf3f3..d09ad9c5d5 100644 --- a/test/Sema/scope-check.c +++ b/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; +} |