From 6e89bead2cd159187c1b8b04969154da4365e654 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 6 Jun 2008 15:53:14 -0700 Subject: - fixed a few tests and added 3 incorrectly succeeding tests - updated go_lang.txt to be more uniform and match the implementation - made makehtml work on Mac - fixed a couple of bugs in go.atg SVN=121520 --- test/func1.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/func1.go (limited to 'test/func1.go') diff --git a/test/func1.go b/test/func1.go new file mode 100644 index 000000000..2f92c35b7 --- /dev/null +++ b/test/func1.go @@ -0,0 +1,16 @@ +// errchk $G $F.go + +// 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 f1(a int) (int, float) { // BUG multiple return values must have names + return 7, 7.0; +} + + +func f2(a int) (a int, b float) { // BUG return value names must be different from parameter names + return 8, 8.0; +} -- cgit v1.2.1