commit | 860c6c9725e6dfc735151a7e8b0780bacdd15e49 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Nov 30 17:44:57 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Nov 30 17:44:57 2007 +0000 |
tree | 6eef15a43b823af72e88c3911faaa350c2ad2daf | |
parent | 608dc0803fef4c5a454c974eb890d24dd2d74a4d [diff] [blame] |
Support fully general case expressions, patch by Sanghyeon Seo! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44453 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/switch.c b/test/CodeGen/switch.c index 68313c0..a4d77b9 100644 --- a/test/CodeGen/switch.c +++ b/test/CodeGen/switch.c
@@ -3,6 +3,8 @@ int foo(int i) { int j = 0; switch (i) { + case -1: + j = 1; break; case 1 : j = 2; break; case 2: