blob: cdaccf4f796144aa1099539042edc80301eb3eae [file] [log] [blame]
Brad Fitzpatricke014cf02012-02-24 13:17:26 +11001// cmpout
Stephen Mab4bb9702011-06-13 22:50:51 +10002
3// Copyright 2011 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Rob Pike83976e32012-02-19 14:28:53 +11007// Test that println can be the target of a go statement.
8
Stephen Mab4bb9702011-06-13 22:50:51 +10009package main
10
11import "time"
12
13func main() {
14 go println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255))
Carl Shapiro4925f8a2013-04-12 16:04:19 -070015 time.Sleep(100*time.Millisecond)
Stephen Mab4bb9702011-06-13 22:50:51 +100016}