mirror of
https://github.com/golang/go
synced 2024-11-22 14:54:46 -07:00
d4a6a2661c
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>
19 lines
314 B
Go
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
|
|
}
|