|
|
@ -5,6 +5,7 @@ garble -tiny build
|
|
|
|
! binsubstr main$exe 'main.go' 'fmt/print.go'
|
|
|
|
! binsubstr main$exe 'main.go' 'fmt/print.go'
|
|
|
|
env GODEBUG='allocfreetrace=1,gcpacertrace=1,gctrace=1,scavenge=1,scavtrace=1,scheddetail=1,schedtrace=10'
|
|
|
|
env GODEBUG='allocfreetrace=1,gcpacertrace=1,gctrace=1,scavenge=1,scavtrace=1,scheddetail=1,schedtrace=10'
|
|
|
|
! exec ./main$exe
|
|
|
|
! exec ./main$exe
|
|
|
|
|
|
|
|
stderr '^\(0x[\d\w]{6,8},0x[\d\w]{6,8}\)' # interfaces/pointers print correctly
|
|
|
|
stderr '^caller: \? 0$' # position info is removed
|
|
|
|
stderr '^caller: \? 0$' # position info is removed
|
|
|
|
stderr '^recovered: ya like jazz?'
|
|
|
|
stderr '^recovered: ya like jazz?'
|
|
|
|
! stderr 'panic: oh noes' # panics are hidden
|
|
|
|
! stderr 'panic: oh noes' # panics are hidden
|
|
|
@ -27,6 +28,9 @@ package main
|
|
|
|
import "runtime"
|
|
|
|
import "runtime"
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
|
|
|
|
|
var v interface{} = "tada"
|
|
|
|
|
|
|
|
println(v)
|
|
|
|
|
|
|
|
|
|
|
|
defer func() {
|
|
|
|
defer func() {
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
if r := recover(); r != nil {
|
|
|
|
println("recovered:", r.(string))
|
|
|
|
println("recovered:", r.(string))
|
|
|
|