1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:54:46 -07:00
go/test/fixedbugs/issue33866.dir/a.go
Than McIntosh d4a6a2661c test: add test that failed with gccgo
Test with some code that triggered a compilation error bug in gccgo.

Updates #33866.

Change-Id: Ib2f226bbbebbfae33b41037438fe34dc5f2ad034
Reviewed-on: https://go-review.googlesource.com/c/go/+/193261
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-09-06 12:11:17 +00:00

19 lines
314 B
Go

// Copyright 2019 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 a
type Builder struct {
x int
}
func (tb Builder) Build() (out struct {
x interface{}
s string
}) {
out.x = nil
out.s = "hello!"
return
}