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 zero length structs.
8 // Used to not be evaluated.
13 func recv(c
chan interface{}) struct{} {
14 return (<-c
).(struct{})
17 var m
= make(map[interface{}]int)
19 func recv1(c
chan interface{}) {
21 m
[(<-c
).(struct{})] = 0
29 c
:= make(chan interface{})