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 | 7e6890a670e676f8040e690c7dc1409d0972bf22 (patch) | |
tree | 20970db37d43dd14bac5cb9fb482245420f69a85 /test/cmp.go | |
parent | 5b2f8d96cec0b1800cc099e022175b3588fd86a2 (diff) | |
download | go-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.go | 3 |
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)) } |