3 // Copyright 2009 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.
26 var m map[float32]*int
42 _, _, _, _, _, _, _, _ = i, f, s, m, c, t, in, ta
50 func shouldPanic(f func()) {
53 panic("not panicking")
59 func shouldBlock(f func()) {
62 panic("did not block")
72 // Looping over indices is fine.
82 for i := 0; i < len(p); i++ {
89 // Looping over values is not.
97 for i := 0; i < len(p); i++ {
104 // select tests already handle select on nil channel
109 // nil channel is never ready
134 // nil map appears empty
141 if x, ok := m[1]; x != 0 || ok {
142 panic(fmt.Sprint(x, ok))
145 for k, v := range m {
150 // but cannot be written to
154 // can delete (non-existent) entries
163 // nil slice is just a 0-element slice.
171 // no 0-element slices can be read from or written to