summaryrefslogtreecommitdiff
path: root/test/runtime.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-01-30 11:31:30 -0800
committerIan Lance Taylor <iant@golang.org>2010-01-30 11:31:30 -0800
commitffed64d6a7710ae031813ee97806d318a0074b2b (patch)
treedf90b13e9ddefad0ff42f5df465b63cef765b260 /test/runtime.go
parent2ff02e7748b40a1c64736db79ddd458d4edff65a (diff)
downloadgolang-ffed64d6a7710ae031813ee97806d318a0074b2b.tar.gz
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 http://codereview.appspot.com/194157
Diffstat (limited to 'test/runtime.go')
-rw-r--r--test/runtime.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runtime.go b/test/runtime.go
index 9507300a2..256873a7a 100644
--- a/test/runtime.go
+++ b/test/runtime.go
@@ -16,5 +16,5 @@ package main
import "runtime"
func main() {
- runtime.printbool(true); // ERROR "cannot refer|undefined identifier"
+ runtime.printbool(true); // ERROR "unexported"
}