...

Source file src/internal/types/testdata/fixedbugs/issue59207.go

Documentation: internal/types/testdata/fixedbugs

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package p
     6  
     7  import "unsafe"
     8  
     9  type E [1 << 32]byte
    10  
    11  var a [1 << 32]E // size of a must not overflow to 0
    12  var _ = unsafe.Sizeof(a /* ERROR "too large" */ )
    13  

View as plain text