Source file test/fixedbugs/gcc61204.go

     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  // PR61204: Making temporaries for zero-sized types caused an ICE in gccgo.
     8  // This is a reduction of a program reported by GoSmith.
     9  
    10  package main
    11  
    12  func main() {
    13  	type t [0]int
    14  	var v t
    15  	v, _ = [0]int{}, 0
    16  	_ = v
    17  }
    18  

View as plain text