aboutsummaryrefslogtreecommitdiff
path: root/test/runtime.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2017-02-28 15:51:29 -0800
committerMatthew Dempsky <mdempsky@google.com>2017-03-01 01:06:32 +0000
commitb6c600fc9a75fd6f4b6f4478058b95902ae6be94 (patch)
tree6fd3c75d437b2df111f8f8af3af72e03ba488b23 /test/runtime.go
parent12b6c18139233abd7b1af1fc0a07279d56df3642 (diff)
downloadgo-b6c600fc9a75fd6f4b6f4478058b95902ae6be94.tar.gz
go-b6c600fc9a75fd6f4b6f4478058b95902ae6be94.zip
cmd/compile/internal/gc: separate builtin and real runtime packages
The builtin runtime package definitions intentionally diverge from the actual runtime package's, but this only works as long as they never overlap. To make it easier to expand the builtin runtime package, this CL now loads their definitions into a logically separate "go.runtime" package. By resetting the package's Prefix field to "runtime", any references to builtin definitions will still resolve against the real package runtime. Fixes #14482. Passes toolstash -cmp. Change-Id: I539c0994deaed4506a331f38c5b4d6bc8c95433f Reviewed-on: https://go-review.googlesource.com/37538 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
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 bccc9b53af..0cf781b814 100644
--- a/test/runtime.go
+++ b/test/runtime.go
@@ -17,5 +17,5 @@ package main
import "runtime"
func main() {
- runtime.printbool(true) // ERROR "unexported"
+ runtime.printbool(true) // ERROR "unexported" "undefined"
}