summaryrefslogtreecommitdiff
path: root/test/cmp.go
diff options
context:
space:
mode:
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)) }