1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:50:21 -07:00

test: add a test that gccgo failed to compile

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/13632057
This commit is contained in:
Ian Lance Taylor 2013-09-18 16:30:38 -07:00
parent 45e214fb62
commit 4182889a09
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// 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.
package p1
type S1 struct{}
func (s S1) f() {}

View File

@ -0,0 +1,13 @@
// 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.
package p2
import "./a"
type S2 struct {
p1.S1
}
func (s S2) f() {}

10
test/fixedbugs/bug478.go Normal file
View File

@ -0,0 +1,10 @@
// compiledir
// 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.
// Using the same unexported name for a method as a method on an
// imported embedded type caused a gccgo compilation failure.
package ignored