Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
LGTM adg@golang.org writes: > Reviewers: golang-dev_googlegroups.com, > > Message: > Hello golang-dev@googlegroups.com, > > I'd like you to review this change to > https://go.googlecode.com/hg > > > Description: > doc/progs: test defer programs > > Please review this at http://codereview.appspot.com/5517044/ > > Affected files: > M doc/progs/defer.go > M doc/progs/run > > > Index: doc/progs/defer.go > =================================================================== > --- a/doc/progs/defer.go > +++ b/doc/progs/defer.go > @@ -51,3 +51,10 @@ > return > } > // STOP OMIT > + > +func main() { > + a() > + b() > + fmt.Println() > + fmt.Println(c()) > +} > Index: doc/progs/run > =================================================================== > --- a/doc/progs/run > +++ b/doc/progs/run > @@ -95,6 +95,8 @@ > testit echo "hello, world" "hello, world" > testit sum "" "6" > testit strings "" "" > +testit defer "" "0 3210 2" > +testit defer2 "" "Calling g. Printing in g 0 Printing in g 1 Printing > in g 2 Printing in g 3 Panicking! Defer in g 3 Defer in g 2 Defer in g > 1 Defer in g 0 Recovered in f 4 Returned normally from f." > > alphabet=abcdefghijklmnopqrstuvwxyz > rot13=nopqrstuvwxyzabcdefghijklm
*** Submitted as http://code.google.com/p/go/source/detail?r=8be74fb194f3 *** doc/progs: test defer programs R=golang-dev, iant CC=golang-dev http://codereview.appspot.com/5517044