Source file test/fixedbugs/issue78355.go

     1  // errorcheck
     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  //go:build amd64 || arm64
     8  
     9  // Issue 78355: map element or key type too large should not cause ICE.
    10  
    11  package p
    12  
    13  type T [1 << 31]byte
    14  
    15  func F(m map[int]T) { // ERROR "map element type too large"
    16  	_ = m[0]
    17  }
    18  

View as plain text