panic.test 254 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 // 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: