aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/switch.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-01 05:27:33 +0000
committerChris Lattner <sabre@nondot.org>2007-12-01 05:27:33 +0000
commit1438b4918a1658ef6467488109ca434e775e58e5 (patch)
tree9fdfbec3fd24698df0f47f4406e3de34f2809be0 /test/CodeGen/switch.c
parent68072a7f22bf73a3d75b6d1e7bf08ebc4d7a4781 (diff)
fix a couple switch codegen problems Oliver reported.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/switch.c')
-rw-r--r--test/CodeGen/switch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/switch.c b/test/CodeGen/switch.c
index a4d77b9c19..3697ce7c02 100644
--- a/test/CodeGen/switch.c
+++ b/test/CodeGen/switch.c
@@ -64,3 +64,13 @@ int foo4(int i) {
}
return j;
}
+
+void foo5(){
+ switch(0){
+ default:
+ if (0) {
+
+ }
+ }
+}
+