summaryrefslogtreecommitdiffstats
path: root/llgo/test
diff options
context:
space:
mode:
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