diff options
author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2023-10-09 22:39:50 +0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-10-09 22:23:06 +0000 |
commit | ad9e6edfddf7c68b7a549ab7b491919f0980889d (patch) | |
tree | 22549bdd761a52f9d5806fa8b11a2a1fbc36158e /test/fixedbugs | |
parent | fce6be15cc2f41f98edad3750c18f904de6520c5 (diff) | |
download | go-ad9e6edfddf7c68b7a549ab7b491919f0980889d.tar.gz go-ad9e6edfddf7c68b7a549ab7b491919f0980889d.zip |
cmd/compile: fix wrong argument of OpSelectN during expand_calls
Fixes #63462
Change-Id: I5ddf831eab630e23156f8f27a079b4ca4bb3a261
Reviewed-on: https://go-review.googlesource.com/c/go/+/533795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'test/fixedbugs')
-rw-r--r-- | test/fixedbugs/issue63462.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/fixedbugs/issue63462.go b/test/fixedbugs/issue63462.go new file mode 100644 index 0000000000..09b7e257a2 --- /dev/null +++ b/test/fixedbugs/issue63462.go @@ -0,0 +1,18 @@ +// compile + +// Copyright 2023 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. + +package p + +func f() { + for b := "" < join([]string{}, "") && true; ; { + _ = b + } +} + +//go:noinline +func join(elems []string, sep string) string { + return "" +} |