Skip to content

Commit a6f564c

Browse files
ianlancetaylorgopherbot
authored andcommitted
test: add test that caused a gofrontend crash
For #55242 Change-Id: I092b1881623ea997b178d038c0afd10cd5bca937 Reviewed-on: https://go-review.googlesource.com/c/go/+/479898 Reviewed-by: Than McIntosh <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent cd25a3a commit a6f564c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/fixedbugs/issue55242.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// compile
2+
3+
// Copyright 2023 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+
// Issue 55242: gofrontend crash calling function that returns
8+
// trailing empty struct.
9+
10+
package p
11+
12+
func F1() (int, struct{}) {
13+
return 0, struct{}{}
14+
}
15+
16+
func F2() {
17+
F1()
18+
}

0 commit comments

Comments
 (0)