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:
parent
45e214fb62
commit
4182889a09
9
test/fixedbugs/bug478.dir/a.go
Normal file
9
test/fixedbugs/bug478.dir/a.go
Normal 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() {}
|
13
test/fixedbugs/bug478.dir/b.go
Normal file
13
test/fixedbugs/bug478.dir/b.go
Normal 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
10
test/fixedbugs/bug478.go
Normal 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
|
Loading…
Reference in New Issue
Block a user