1
0
mirror of https://github.com/golang/go synced 2024-11-24 20:10:02 -07:00

New gccgo error message; match both compilers with one string.

8g:
runtime.go:19: cannot refer to unexported name runtime.printbool

gccgo:
runtime.go:19:10: error: invalid reference to unexported identifier ‘runtime.printbool’

R=rsc
CC=golang-dev
https://golang.org/cl/194157
This commit is contained in:
Ian Lance Taylor 2010-01-30 11:31:30 -08:00
parent f4d714ca2d
commit 637e0eecb4

View File

@ -16,5 +16,5 @@ package main
import "runtime"
func main() {
runtime.printbool(true); // ERROR "cannot refer|undefined identifier"
runtime.printbool(true); // ERROR "unexported"
}