diff --git a/test/reorder.go b/test/reorder.go index 007039e8a9b..0cdeebd0f31 100644 --- a/test/reorder.go +++ b/test/reorder.go @@ -19,6 +19,7 @@ func main() { p6() p7() p8() + p9() } var gx []int @@ -119,3 +120,11 @@ func p8() { i := 0 i, x[i], x[5] = 1, 100, 500 } + +func p9() { + m := make(map[int]int) + m[0] = len(m) + if m[0] != 0 { + panic(m[0]) + } +}