commit | d91d1f823adfe64af030707fff4807b104bf1d52 | [log] [tgz] |
---|---|---|
author | Steve Naroff <snaroff@apple.com> | Wed Apr 15 16:58:41 2009 +0000 |
committer | Steve Naroff <snaroff@apple.com> | Wed Apr 15 16:58:41 2009 +0000 |
tree | b70ad07d19f38f1aa7de4dba65bb188307b158c0 | |
parent | e5d60a3d4be1eaa0b6349236787e3ee92bbfc8ff [diff] [blame] |
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
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c index 20cecbf..d09ad9c 100644 --- a/test/Sema/scope-check.c +++ b/test/Sema/scope-check.c
@@ -22,3 +22,11 @@ L: return a; } + +int test4(int x) { + goto L; // expected-error{{illegal jump}} + int a[x]; + test4(x); + L: + return sizeof a; +}