summaryrefslogtreecommitdiff
path: root/test/func1.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-06-06 15:53:14 -0700
committerRobert Griesemer <gri@golang.org>2008-06-06 15:53:14 -0700
commit6e89bead2cd159187c1b8b04969154da4365e654 (patch)
tree43028db105ceb59b039061a046904bd668df2b7e /test/func1.go
parent161628d8fdf3518376c93c79558c9f72aac13d57 (diff)
downloadgo-6e89bead2cd159187c1b8b04969154da4365e654.tar.gz
- 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
Diffstat (limited to 'test/func1.go')
-rw-r--r--test/func1.go16
1 files changed, 16 insertions, 0 deletions
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;
+}