summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/exprs.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-13 02:03:06 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-13 02:03:06 +0000
commit294c2db42bbef486b55297fcde31e89a88998c69 (patch)
tree51478972e9d835130185b1750413451adb78003a /clang/test/CodeGen/exprs.c
parent8cf302a1e7ff8896980edbb073541a648748a751 (diff)
downloadbcm5719-llvm-294c2db42bbef486b55297fcde31e89a88998c69.tar.gz
bcm5719-llvm-294c2db42bbef486b55297fcde31e89a88998c69.zip
Ensure an insertion point at the end of a statement-expression.
Fixes PR8967. llvm-svn: 123360
Diffstat (limited to 'clang/test/CodeGen/exprs.c')
-rw-r--r--clang/test/CodeGen/exprs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c
index b03539333cd..cc03be6a922 100644
--- a/clang/test/CodeGen/exprs.c
+++ b/clang/test/CodeGen/exprs.c
@@ -166,3 +166,11 @@ void f15() {
// CHECK-NOT: load
// CHECK: ret void
}
+
+// PR8967: this was crashing
+// CHECK: define void @f16()
+void f16() {
+ __extension__({ goto lbl; });
+ lbl:
+ ;
+}
OpenPOWER on IntegriCloud