summaryrefslogtreecommitdiffstats
path: root/clang/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
commit9e137aad7850773b6a18227550b850f2f468e2ed (patch)
treef54e05a344ba50f2df8351c8554ca39b8d85eb72 /clang/test/CodeGen/switch.c
parent3e14c152c6a71b19882aee15837cb670576cd7ff (diff)
downloadbcm5719-llvm-9e137aad7850773b6a18227550b850f2f468e2ed.tar.gz
bcm5719-llvm-9e137aad7850773b6a18227550b850f2f468e2ed.zip
fix a couple switch codegen problems Oliver reported.
llvm-svn: 44484
Diffstat (limited to 'clang/test/CodeGen/switch.c')
-rw-r--r--clang/test/CodeGen/switch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/switch.c b/clang/test/CodeGen/switch.c
index a4d77b9c199..3697ce7c028 100644
--- a/clang/test/CodeGen/switch.c
+++ b/clang/test/CodeGen/switch.c
@@ -64,3 +64,13 @@ int foo4(int i) {
}
return j;
}
+
+void foo5(){
+ switch(0){
+ default:
+ if (0) {
+
+ }
+ }
+}
+
OpenPOWER on IntegriCloud