aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-03-09 08:24:10 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2018-03-09 17:03:25 +0000
commit031f71efdf1fd72322247a92c2d1a56eac16fd45 (patch)
treecb1e49ce9cc664ef7c755bd8df85ec489494f639 /src/runtime/export_test.go
parentb2d1cd2ad0dd1e0c84e6c3b2eccf77a5bcb84cdd (diff)
downloadgo-031f71efdf1fd72322247a92c2d1a56eac16fd45.tar.xz
runtime: add TestSizeof
Borrowed from cmd/compile, TestSizeof ensures that the size of important types doesn't change unexpectedly. It also helps reviewers see the impact of intended changes. Change-Id: If57955f0c3e66054de3f40c6bba585b88694c7be Reviewed-on: https://go-review.googlesource.com/99837 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index 6d8f88d3a7..c8f6fcd7d1 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -444,3 +444,5 @@ func MapNextArenaHint() (start, end uintptr) {
func GetNextArenaHint() uintptr {
return mheap_.arenaHints.addr
}
+
+type G = g