summaryrefslogtreecommitdiffstats
path: root/llgo/test
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-12-28 22:39:01 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-12-28 22:39:01 +0000
commitb6edff93aecdc9fb6a3dede4e79181469ea680b8 (patch)
tree5dadcc001d7434a2c70f029874c328c8f26c2993 /llgo/test
parent06039218f5ef078b7a815a68d2f9eca44658d7f0 (diff)
downloadbcm5719-llvm-b6edff93aecdc9fb6a3dede4e79181469ea680b8.tar.gz
bcm5719-llvm-b6edff93aecdc9fb6a3dede4e79181469ea680b8.zip
irgen: do not emit an extra terminator for panic thunks
Found with GoSmith. Differential Revision: http://reviews.llvm.org/D6714 llvm-svn: 224904
Diffstat (limited to 'llgo/test')
-rw-r--r--llgo/test/irgen/go-panic.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/llgo/test/irgen/go-panic.go b/llgo/test/irgen/go-panic.go
new file mode 100644
index 00000000000..35b0a47bb9b
--- /dev/null
+++ b/llgo/test/irgen/go-panic.go
@@ -0,0 +1,10 @@
+// RUN: llgo -S -emit-llvm -o - %s | FileCheck %s
+
+package foo
+
+func F() {
+ // CHECK: call void @__go_panic
+ // CHECK-NEXT: ret void
+ // CHECK-NEXT: }
+ go panic("")
+}
OpenPOWER on IntegriCloud