mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
test: gccgo and gc print the error on different lines.
This introduces GC_ERROR to mark an error only issued by the gc compiler. GCCGO_ERROR already exists to mark errors only issued by the gccgo compiler. Obviously these should be used sparingly. bug195.go:9: error: interface contains embedded non-interface bug195.go:12: error: interface contains embedded non-interface bug195.go:15: error: interface contains embedded non-interface bug195.go:18: error: invalid recursive interface bug195.go:22: error: invalid recursive interface R=rsc CC=golang-dev https://golang.org/cl/2040043
This commit is contained in:
parent
472cd3af12
commit
09977734cd
2 changed files with 4 additions and 4 deletions
|
|
@ -19,9 +19,9 @@ type I4 interface {
|
|||
}
|
||||
|
||||
type I5 interface {
|
||||
I6
|
||||
I6 // GCCGO_ERROR "interface"
|
||||
}
|
||||
|
||||
type I6 interface {
|
||||
I5 // ERROR "interface"
|
||||
I5 // GC_ERROR "interface"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue