mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
test: add test that gccgo fails to compile
Change-Id: I14d31bb62fd0e26a84f8781644c40918404f5f3e Reviewed-on: https://go-review.googlesource.com/c/go/+/213899 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
f9c51e353f
commit
059a5ac3eb
13
test/fixedbugs/bug507.dir/a.go
Normal file
13
test/fixedbugs/bug507.dir/a.go
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright 2020 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 I interface {
|
||||
M()
|
||||
}
|
||||
|
||||
type S struct {
|
||||
I I
|
||||
}
|
9
test/fixedbugs/bug507.dir/b.go
Normal file
9
test/fixedbugs/bug507.dir/b.go
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright 2020 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 b
|
||||
|
||||
import . "./a"
|
||||
|
||||
var V2 I
|
9
test/fixedbugs/bug507.dir/c.go
Normal file
9
test/fixedbugs/bug507.dir/c.go
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright 2020 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 b
|
||||
|
||||
import "./a"
|
||||
|
||||
var V1 = a.S{I: nil}
|
9
test/fixedbugs/bug507.go
Normal file
9
test/fixedbugs/bug507.go
Normal file
@ -0,0 +1,9 @@
|
||||
// compiledir
|
||||
|
||||
// Copyright 2020 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.
|
||||
|
||||
// Gccgo mishandled a combination of normal import and dot import.
|
||||
|
||||
package ignored
|
Loading…
x
Reference in New Issue
Block a user