summaryrefslogtreecommitdiff
path: root/test/cmp.go
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2011-12-15 17:50:59 +0100
committerLuuk van Dijk <lvd@golang.org>2011-12-15 17:50:59 +0100
commit9956ec696cee09be6b89514d30fe7a3222af716e (patch)
tree608b0f3ee102b82f95d89992870355a9b085a876 /test/cmp.go
parentf9561c87cd7bd5a88fb06ce12dce654f1342f1e4 (diff)
downloadgo-9956ec696cee09be6b89514d30fe7a3222af716e.tar.gz
gc: inlining, allow empty bodies, fix _ arguments.
R=rsc CC=golang-dev http://codereview.appspot.com/5487077
Diffstat (limited to 'test/cmp.go')
-rw-r--r--test/cmp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cmp.go b/test/cmp.go
index f079c5d56..d51a11aa2 100644
--- a/test/cmp.go
+++ b/test/cmp.go
@@ -8,7 +8,8 @@ package main
import "unsafe"
-func use(bool) {}
+var global bool
+func use(b bool) { global = b }
func stringptr(s string) uintptr { return *(*uintptr)(unsafe.Pointer(&s)) }