llgoi is a Go REPL based on llgo irgen and the LLVM JIT. It supports expressions, statements, most declarations and imports, including binary imports from the standard library and source imports from $GOPATH. Differential Revision: http://reviews.llvm.org/D6957 llvm-svn: 226097
17 lines
254 B
Plaintext
17 lines
254 B
Plaintext
// RUN: llgoi < %s | FileCheck %s
|
|
|
|
panic("msg")
|
|
// CHECK: panic: msg
|
|
|
|
import "fmt"
|
|
func() {
|
|
defer func() {
|
|
r := recover()
|
|
fmt.Println("recovered", r)
|
|
}()
|
|
panic("msg")
|
|
}()
|
|
// CHECK-NOT: {{^}}panic:
|
|
// CHECK: recovered msg
|
|
// CHECK-NOT: {{^}}panic:
|