diff options
author | Luuk van Dijk <lvd@golang.org> | 2011-12-15 17:50:59 +0100 |
---|---|---|
committer | Luuk van Dijk <lvd@golang.org> | 2011-12-15 17:50:59 +0100 |
commit | 9956ec696cee09be6b89514d30fe7a3222af716e (patch) | |
tree | 608b0f3ee102b82f95d89992870355a9b085a876 /test/cmp.go | |
parent | f9561c87cd7bd5a88fb06ce12dce654f1342f1e4 (diff) | |
download | go-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.go | 3 |
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)) } |