diff options
author | Russ Cox <rsc@golang.org> | 2009-09-03 10:59:52 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-03 10:59:52 -0700 |
commit | bcf4602ebef0d02da0c576ff9db69fe1a8a50c4a (patch) | |
tree | b753ba9b24b5b5ae555b59159fe74efa7abac747 | |
parent | a36142518f1067284d7e3cc7b06e3720d99d34d4 (diff) | |
download | golang-bcf4602ebef0d02da0c576ff9db69fe1a8a50c4a.tar.gz |
fix bug187 (itself buggy)
R=austin
DELTA=26 (0 added, 26 deleted, 0 changed)
OCL=34294
CL=34317
-rw-r--r-- | test/bugs/bug187.go | 23 | ||||
-rw-r--r-- | test/golden.out | 3 |
2 files changed, 0 insertions, 26 deletions
diff --git a/test/bugs/bug187.go b/test/bugs/bug187.go deleted file mode 100644 index 73d73dbb8..000000000 --- a/test/bugs/bug187.go +++ /dev/null @@ -1,23 +0,0 @@ -// $G $D/$F.go && $L $F.$A && ./$A.out - -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -import "os" - -func main() { - // This bug doesn't arise with [...]int, or []interface{} or [3]interface{}. - a := [...]interface{} { 1, 2, 3 }; - n := 0; - bug := false; - for _, v := range a { - if v.(int) != n { - println("BUG:", n, v.(int)); - os.Exit(0); - } - n++; - } -} diff --git a/test/golden.out b/test/golden.out index 6c67c0b08..eabaf8863 100644 --- a/test/golden.out +++ b/test/golden.out @@ -151,9 +151,6 @@ BUG: should fail =========== bugs/bug169.go BUG: errchk: command succeeded unexpectedly -=========== bugs/bug187.go -BUG: 0 1 - =========== bugs/bug190.go bugs/bug190.go:11: invalid recursive type []S bugs/bug190.go:16: invalid recursive type S |