Home | History | Annotate | Download | only in fixedbugs
      1 // compile
      2 
      3 // Copyright 2014 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 // PR61265: The gccgo middle-end failed to represent array composite literals
      8 // where the elements are zero-sized values.
      9 // This is a reduction of a program reported by GoSmith.
     10 
     11 package p
     12 
     13 var a = [1][0]int{B}[0]
     14 var B = [0]int{}
     15 var c = [1]struct{}{D}[0]
     16 var D = struct{}{}
     17