3 // Copyright 2022 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.
11 func checkClearSlice() {
16 panic("clear not zeroing slice elem")
23 func checkClearMap() {
24 m1 := make(map[int]int)
29 panic("m1 is not cleared")
32 // map contains NaN keys is also cleared.
33 m2 := make(map[float64]int)
38 panic("m2 is not cleared")