mirror of
https://github.com/golang/go
synced 2024-11-05 17:36:15 -07:00
d270e6f28c
Gccgo doesn't have the same equivalent of file name and package as the gc compiler, so the error messages are necessarily different. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/40510048
13 lines
534 B
Go
13 lines
534 B
Go
package p
|
|
|
|
import (
|
|
"./a" // ERROR "imported and not used: \x22a\x22 as surprise|imported and not used: surprise"
|
|
"./b" // GC_ERROR "imported and not used: \x22b\x22 as surprise2|imported and not used: surprise2"
|
|
b "./b" // ERROR "imported and not used: \x22b\x22$|imported and not used: surprise2"
|
|
foo "math" // ERROR "imported and not used: \x22math\x22 as foo|imported and not used: math"
|
|
"fmt" // actually used
|
|
"strings" // ERROR "imported and not used: \x22strings\x22|imported and not used: strings"
|
|
)
|
|
|
|
var _ = fmt.Printf
|