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 len constants and non-constants, http://golang.org/issue/3244.
15 var m
map[string][20]int
25 // Non-constants (see also const5.go).
40 var c
= func() chan *[50]int {
41 c
:= make(chan *[50]int, 2)
54 var c1
= func() chan *[70]int {
55 c
:= make(chan *[70]int, 2)
62 if n1
!= 10 || n2
!= 20 || n3
!= 30 || n4
!= 40 || n5
!= 50 || n6
!= 60 || n7
!= 70 {
63 println("BUG:", n1
, n2
, n3
, n4
, n5
, n6
, n7
)
67 println("BUG: did not call f")
71 println("BUG: did not receive from c")
75 println("BUG: did not call g")
79 println("BUG: did not receive from c1")