Delta Between Two Patch Sets: test/fixedbugs/bug413.go
Issue 5673079 :
code review 5673079: test: use testlib (fourth 100) (Closed)
Left Patch Set:
Right Patch Set: diff -r f25acee8fc0c https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
test/fixedbugs/bug397.go
test/fixedbugs/bug398.go
test/fixedbugs/bug402.go
test/fixedbugs/bug403.go
test/fixedbugs/bug405.go
test/fixedbugs/bug410.go
test/fixedbugs/bug411.go
test/fixedbugs/bug412.go
test/fixedbugs/bug413.go
test/fixedbugs/bug416.go
test/fixedbugs/bug418.go
test/float_lit.go
test/floatcmp.go
test/for.go
test/func.go
test/func1.go
test/func3.go
test/func4.go
test/func5.go
test/func6.go
test/func7.go
test/func8.go
test/gc.go
test/gc1.go
test/gc2.go
test/goto.go
test/hashmap.go
test/if.go
test/import.go
test/import1.go
test/import5.go
test/indirect1.go
test/init.go
test/init1.go
test/initcomma.go
test/initialize.go
test/initializerr.go
test/initsyscall.go
test/int_lit.go
test/intcvt.go
test/interface/bigdata.go
test/interface/convert.go
test/interface/convert1.go
test/interface/convert2.go
test/interface/embed.go
test/interface/embed2.go
test/interface/explicit.go
test/interface/fail.go
test/interface/fake.go
test/interface/pointer.go
test/interface/receiver.go
test/interface/receiver1.go
test/interface/returntype.go
test/iota.go
test/ken/array.go
test/ken/chan.go
test/ken/chan1.go
test/ken/complit.go
test/ken/convert.go
test/ken/cplx1.go
test/ken/cplx2.go
test/ken/cplx3.go
test/ken/cplx4.go
test/ken/cplx5.go
test/ken/divconst.go
test/ken/divmod.go
test/ken/embed.go
test/ken/for.go
test/ken/interbasic.go
test/ken/interfun.go
test/ken/intervar.go
test/ken/label.go
test/ken/litfun.go
test/ken/mfunc.go
test/ken/modconst.go
test/ken/ptrfun.go
test/ken/ptrvar.go
test/ken/range.go
test/ken/rob1.go
test/ken/rob2.go
test/ken/robfor.go
test/ken/robfunc.go
test/ken/shift.go
test/ken/simparray.go
test/ken/simpbool.go
test/ken/simpconv.go
test/ken/simpfun.go
test/ken/simpswitch.go
test/ken/simpvar.go
test/ken/slicearray.go
test/ken/sliceslice.go
test/ken/strvar.go
test/label.go
test/label1.go
test/literal.go
test/malloc1.go
test/mallocfin.go
test/mallocrand.go
test/mallocrep.go
LEFT RIGHT
(no file at all) 1 // errchk $G $D/$F.go 1 // errorcheck
2 2
3 // Copyright 2012 The Go Authors. All rights reserved. 3 // Copyright 2012 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 package p 7 package p
8 8
9 func f(i int) int { return i } 9 func f(i int) int { return i }
10 10
11 var i = func() int {a := f(i); return a}() // ERROR "initialization loop" 11 var i = func() int {a := f(i); return a}() // ERROR "initialization loop"
LEFT RIGHT