aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2024-11-03 15:52:29 +0700
committerGopher Robot <gobot@golang.org>2024-11-04 16:46:35 +0000
commit324f41b748fd87ad4a1cafa458bac3014f2fb5f2 (patch)
tree929ea5bc64d06b09e8241bc82af1264a3e75b5a7 /test/fixedbugs
parent76f3e0ac8d094b2bc5f8a3fb8a19d1d17a07fe2c (diff)
downloadgo-324f41b748fd87ad4a1cafa458bac3014f2fb5f2.tar.xz
cmd/compile: fix inlining name mangling for blank label
Fixes #70175 Change-Id: I13767d951455854b03ad6707ff9292cfe9097ee9 Reviewed-on: https://go-review.googlesource.com/c/go/+/624377 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Keith Randall <khr@golang.org> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/issue70175.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fixedbugs/issue70175.go b/test/fixedbugs/issue70175.go
new file mode 100644
index 0000000000..0ad6e39a7f
--- /dev/null
+++ b/test/fixedbugs/issue70175.go
@@ -0,0 +1,17 @@
+// compile
+
+// Copyright 2024 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 main
+
+func f() {
+_:
+
+_:
+}
+
+func main() {
+ f()
+}