1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:24:41 -07:00

bug264 didn't report BUG correctly, caused "fail" from test/run

R=rsc, gri
CC=golang-dev
https://golang.org/cl/762041
This commit is contained in:
Rob Pike 2010-03-25 14:27:24 -07:00
parent 7fbf9fcba9
commit c93273c0f5
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// $G $D/$F.go && $L $F.$A && ./$A.out // $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG
// Copyright 2010 The Go Authors. All rights reserved. // Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
@ -38,12 +38,12 @@ var _, _ = bal() // bal is called twice
func main() { func main() {
if fooCount != 1 { if fooCount != 1 {
panic("BUG: fooCount != 1") panic("fooCount != 1")
} }
if barCount != 1 { if barCount != 1 {
panic("BUG: barCount != 1") panic("barCount != 1")
} }
if balCount != 1 { if balCount != 1 {
panic("BUG: balCount != 1") panic("balCount != 1")
} }
} }

View File

@ -189,5 +189,6 @@ bar
bar bar
bal bal
bal bal
BUG: barCount != 1 barCount != 1
panic PC=xxx panic PC=xxx
BUG