Source file test/fixedbugs/issue42058a.go

     1  // errorcheck
     2  
     3  // Copyright 2020 The Go Authors. All rights reserved.  Use of this
     4  // source code is governed by a BSD-style license that can be found in
     5  // the LICENSE file.
     6  
     7  package p
     8  
     9  var c chan [2 << 16]byte // GC_ERROR "channel element type too large"
    10  
    11  type T [1 << 17]byte
    12  
    13  var x chan T // GC_ERROR "channel element type too large"
    14  

View as plain text