summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-30 17:44:57 +0000
committerChris Lattner <sabre@nondot.org>2007-11-30 17:44:57 +0000
commitaa0b570dfbce32ec47500f923a7b7683d3667dec (patch)
treee88f7c440948a267886fede5c76f4eaf4440bc74 /clang/test/CodeGen
parent4e8c0716125e18b5630e895c8c47bf10b7e38511 (diff)
downloadbcm5719-llvm-aa0b570dfbce32ec47500f923a7b7683d3667dec.tar.gz
bcm5719-llvm-aa0b570dfbce32ec47500f923a7b7683d3667dec.zip
Support fully general case expressions, patch by Sanghyeon Seo!
llvm-svn: 44453
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/switch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/switch.c b/clang/test/CodeGen/switch.c
index 68313c0741f..a4d77b9c199 100644
--- a/clang/test/CodeGen/switch.c
+++ b/clang/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:
OpenPOWER on IntegriCloud