From: Ian Lance Taylor Date: Thu, 6 Jan 2022 04:22:15 +0000 (-0800) Subject: test: add test of incorrect gofrontend error X-Git-Tag: go1.18beta2~159 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ed84a8357c0107dedc42c9658ae9b020777b1bb7;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Than McIntosh Trust: Than McIntosh Reviewed-by: Cherry Mui --- diff --git a/test/fixedbugs/issue50439.go b/test/fixedbugs/issue50439.go new file mode 100644 index 0000000000..63629a5bde --- /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)