mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
test: add test that caused gccgo crash
For #23870 Change-Id: I3bbe0f751254d1354a59a88b45e6f944c7a2fb4d Reviewed-on: https://go-review.googlesource.com/c/go/+/417874 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
011a525b21
commit
6001c043dc
16
test/fixedbugs/issue23870.go
Normal file
16
test/fixedbugs/issue23870.go
Normal file
@ -0,0 +1,16 @@
|
||||
// compile
|
||||
|
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Crashed gccgo.
|
||||
|
||||
package p
|
||||
|
||||
var F func() [0]struct{
|
||||
A int
|
||||
}
|
||||
|
||||
var i int
|
||||
var V = (F()[i]).A
|
Loading…
x
Reference in New Issue
Block a user