mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
test: add test that caused gofrontend compiler crash
Updates https://gcc.gnu.org/PR101994 Change-Id: I50dcb90e315792efd7d83b496034ad33b5f199e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/343874 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
d37b8dedf7
commit
e1fcf8857e
1 changed files with 16 additions and 0 deletions
16
test/fixedbugs/gcc101994.go
Normal file
16
test/fixedbugs/gcc101994.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// compile
|
||||
|
||||
// Copyright 2021 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.
|
||||
|
||||
// https://gcc.gnu.org/PR101994
|
||||
// gccgo compiler crash with zero-sized result.
|
||||
|
||||
package p
|
||||
|
||||
type Empty struct{}
|
||||
|
||||
func F() (int, Empty) {
|
||||
return 0, Empty{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue