mirror of
https://github.com/golang/go
synced 2024-11-26 17:56:55 -07:00
test: add test that caused gofrontend crash
For #52871 Change-Id: Id6102222a8b1ec8a84b716425bed0e349c65dbc4 Reviewed-on: https://go-review.googlesource.com/c/go/+/414336 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
155612a9b9
commit
f093cf90bf
17
test/fixedbugs/issue52871.go
Normal file
17
test/fixedbugs/issue52871.go
Normal file
@ -0,0 +1,17 @@
|
||||
// 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.
|
||||
|
||||
// gofrontend crashed compiling this code.
|
||||
|
||||
package p
|
||||
|
||||
type S struct {}
|
||||
|
||||
func (s *S) test(_ string) {}
|
||||
|
||||
var T = [1]func(*S, string) {
|
||||
(*S).test,
|
||||
}
|
Loading…
Reference in New Issue
Block a user