aboutsummaryrefslogtreecommitdiff
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
commit7e6890a670e676f8040e690c7dc1409d0972bf22 (patch)
tree20970db37d43dd14bac5cb9fb482245420f69a85 /test/cmp.go
parent5b2f8d96cec0b1800cc099e022175b3588fd86a2 (diff)
downloadgo-7e6890a670e676f8040e690c7dc1409d0972bf22.tar.gz
go-7e6890a670e676f8040e690c7dc1409d0972bf22.zip
gc: inlining, allow empty bodies, fix _ arguments.
R=rsc CC=golang-dev https://golang.org/cl/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 f079c5d560..d51a11aa24 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)) }