aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-01-05 20:22:15 -0800
committerIan Lance Taylor <iant@golang.org>2022-01-06 19:21:12 +0000
commited84a8357c0107dedc42c9658ae9b020777b1bb7 (patch)
treed357462663c566c0341271203603b187956711d1 /test
parent7a3a2b18ff3b8591eba18b730da7f84751bbfdc5 (diff)
downloadgo-ed84a8357c0107dedc42c9658ae9b020777b1bb7.tar.gz
go-ed84a8357c0107dedc42c9658ae9b020777b1bb7.zip
test: add test of incorrect gofrontend error
For #50439 Change-Id: Ifad6e6f8de42121c695b5a4dc56e0f6606e2917e Reviewed-on: https://go-review.googlesource.com/c/go/+/375796 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Trust: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue50439.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/issue50439.go b/test/fixedbugs/issue50439.go
new file mode 100644
index 00000000000..63629a5bde9
--- /dev/null
+++ b/test/fixedbugs/issue50439.go
@@ -0,0 +1,13 @@
+// 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.
+
+package p
+
+var data []struct {
+ F string `tag`
+}
+
+var V = ([]struct{ F string })(data)