diff options
author | Keith Randall <khr@golang.org> | 2014-09-05 10:04:16 -0400 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-09-05 10:04:16 -0400 |
commit | 3f94b79d4827411c92a95d8e3c76049a3784e3e0 (patch) | |
tree | eac953b858b2d8f49e96e9853740e879663975b4 /test | |
parent | 1dba806d6a948976a2ecdb08a7c4839ff0a42766 (diff) | |
download | go-3f94b79d4827411c92a95d8e3c76049a3784e3e0.tar.gz |
runtime: convert panic/recover to Go
created panic1.go just so diffs were available.
After this CL is in, I'd like to move panic.go -> defer.go
and panic1.go -> panic.go.
LGTM=rsc
R=rsc, khr
CC=golang-codereviews
https://codereview.appspot.com/133530045
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/live.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/live.go b/test/live.go index 1c01f8dc4..35099d18b 100644 --- a/test/live.go +++ b/test/live.go @@ -467,7 +467,7 @@ func f31(b1, b2, b3 bool) { h31("b") // ERROR "live at call to newobject: autotmp_[0-9]+$" "live at call to convT2E: autotmp_[0-9]+ autotmp_[0-9]+$" "live at call to h31: autotmp_[0-9]+$" } if b3 { - panic("asdf") // ERROR "live at call to convT2E: autotmp_[0-9]+$" "live at call to panic: autotmp_[0-9]+$" + panic("asdf") // ERROR "live at call to convT2E: autotmp_[0-9]+$" "live at call to gopanic: autotmp_[0-9]+$" } print(b3) } |