Source file test/fixedbugs/issue77303.go

     1  // compile
     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  // Issue 77303: compiler crash on array of zero-size ASPECIAL elements.
     8  
     9  package p
    10  
    11  type zeroSizeSpecial struct {
    12  	_ [0]float64
    13  }
    14  
    15  var x [3]zeroSizeSpecial
    16  
    17  func f() bool {
    18  	return x == x
    19  }
    20  

View as plain text