From ea0569026cddcecd8cf6df55dcd24c93fc9769ea Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 28 Jul 2008 10:22:49 -0700 Subject: update tests R=gri OCL=13516 CL=13516 --- test/bugs/bug010.go | 24 ------------------------ test/bugs/bug033.go | 11 ----------- test/fixedbugs/bug010.go | 24 ++++++++++++++++++++++++ 3 files changed, 24 insertions(+), 35 deletions(-) delete mode 100644 test/bugs/bug010.go delete mode 100644 test/bugs/bug033.go create mode 100644 test/fixedbugs/bug010.go diff --git a/test/bugs/bug010.go b/test/bugs/bug010.go deleted file mode 100644 index 43f68748dd..0000000000 --- a/test/bugs/bug010.go +++ /dev/null @@ -1,24 +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 - - -func f() (i int, f float) { - i = 8; - f = 8.0; - return; -} - -func main() { - f(3, float(5)) -} - -/* -bug10.go:5: i undefined -bug10.go:6: illegal conversion of constant to 020({},<_o001>{INT32;FLOAT32;},{}) -bug10.go:7: error in shape across assignment -*/ diff --git a/test/bugs/bug033.go b/test/bugs/bug033.go deleted file mode 100644 index 603a4aa915..0000000000 --- a/test/bugs/bug033.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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. - -// $G $D/$F.go && echo BUG: compilation succeeds incorrectly - -package main - -type Iputs interface { - puts func(s string); // BUG no func allowed -} diff --git a/test/fixedbugs/bug010.go b/test/fixedbugs/bug010.go new file mode 100644 index 0000000000..e71c4d7f0b --- /dev/null +++ b/test/fixedbugs/bug010.go @@ -0,0 +1,24 @@ +// $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 + + +func f(i int, f float) { + i = 8; + f = 8.0; + return; +} + +func main() { + f(3, float(5)) +} + +/* +bug10.go:5: i undefined +bug10.go:6: illegal conversion of constant to 020({},<_o001>{INT32;FLOAT32;},{}) +bug10.go:7: error in shape across assignment +*/ -- cgit v1.3