Commit 193ff39a authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add test that caused a gccgo compilation failure

Updates #4734.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7228079
parent 7d8cc587
// compile
// Copyright 2013 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.
// Caused gccgo to emit multiple definitions of the same symbol.
package p
type S1 struct{}
func (s *S1) M() {}
type S2 struct {
F struct{ *S1 }
}
func F() {
_ = struct{ *S1 }{}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment