aboutsummaryrefslogtreecommitdiff
path: root/test/goprint.go
diff options
context:
space:
mode:
authorStephen Ma <stephenm@golang.org>2011-06-13 22:50:51 +1000
committerStephen Ma <stephenm@golang.org>2011-06-13 22:50:51 +1000
commitb4bb970e1852e9f5340b846379ce4a434a1b9d26 (patch)
tree29e4128dc90cfe0b7185ba80ef61ee6855daf645 /test/goprint.go
parent7bc8e90e362177ef0003688e2f9c99d2b19c17d3 (diff)
downloadgo-b4bb970e1852e9f5340b846379ce4a434a1b9d26.tar.gz
go-b4bb970e1852e9f5340b846379ce4a434a1b9d26.zip
gc: handle go print() and go println()
Fixes #1952. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4611041
Diffstat (limited to 'test/goprint.go')
-rw-r--r--test/goprint.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/goprint.go b/test/goprint.go
new file mode 100644
index 0000000000..c0e34c750e
--- /dev/null
+++ b/test/goprint.go
@@ -0,0 +1,14 @@
+// $G $D/$F.go && $L $F.$A && ./$A.out
+
+// Copyright 2011 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 "time"
+
+func main() {
+ go println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255))
+ time.Sleep(1e6)
+}