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.
7 // Test that println can be the target of a go statement.
18 numg0 := runtime.NumGoroutine()
19 deadline := time.Now().Add(10 * time.Second)
20 go println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255))
22 numg := runtime.NumGoroutine()
24 if time.Now().After(deadline) {
25 log.Fatalf("%d goroutines > initial %d after deadline", numg, numg0)