Source file test/fixedbugs/issue47904b.go
1 // run 2 3 // Copyright 2026 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. 6 7 package main 8 9 type M map[int]int 10 11 var sink any 12 13 func main() { 14 sink = M{} 15 p := new([8]int) 16 m := make(map[any]int) 17 m[p] = 42 18 if m[p] != 42 { 19 panic("incorrect lookup") 20 } 21 } 22