llvm-project/llgo/test/irgen/go-panic.go

11 lines
167 B
Go
Raw Normal View History

// 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("")
}