Source file test/fixedbugs/issue23870.go

     1  // compile
     2  
     3  // Copyright 2022 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  // Crashed gccgo.
     8  
     9  package p
    10  
    11  var F func() [0]struct{
    12  	A int
    13  }
    14  
    15  var i int
    16  var V = (F()[i]).A
    17  

View as plain text