summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/switch.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-12 16:08:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-12 16:08:04 +0000
commit6a7087e45561fde7b2303708b42cd25d0e7692bf (patch)
tree2460445fbc4c7eea3c3a418a4b23279ebb2fecb8 /clang/test/CodeGen/switch.c
parentecb77385ab699d1313ef3a338b2cf1a4d52645e6 (diff)
downloadbcm5719-llvm-6a7087e45561fde7b2303708b42cd25d0e7692bf.tar.gz
bcm5719-llvm-6a7087e45561fde7b2303708b42cd25d0e7692bf.zip
Emit basic block for switch body; fixes PR2307.
llvm-svn: 50968
Diffstat (limited to 'clang/test/CodeGen/switch.c')
-rw-r--r--clang/test/CodeGen/switch.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/switch.c b/clang/test/CodeGen/switch.c
index a21505ef89c..056337465bc 100644
--- a/clang/test/CodeGen/switch.c
+++ b/clang/test/CodeGen/switch.c
@@ -74,3 +74,14 @@ void foo5(){
}
}
+void foo6(){
+ switch(0){
+ }
+}
+
+void foo7(){
+ switch(0){
+ foo7();
+ }
+}
+
OpenPOWER on IntegriCloud