# TODO: test actual replacement of os.exit by debug.exit
# test call to os.exit

#setenv script_keepwork true
#godebugtester run -work main.go
godebugtester run main.go
contains stdout "=> _.Exit(0)"

-- main.go --
package main
import "os"
func main() {
	os.Exit(0)
}

