Files
clang-p2996/llgo/test/llgoi/panic.test
Peter Collingbourne 6725a83e84 Introduce llgoi, a REPL for Go
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
2015-01-15 04:13:29 +00:00

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: