diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2018-03-09 08:24:10 -0800 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2018-03-09 17:03:25 +0000 |
| commit | 031f71efdf1fd72322247a92c2d1a56eac16fd45 (patch) | |
| tree | cb1e49ce9cc664ef7c755bd8df85ec489494f639 /src/runtime/export_test.go | |
| parent | b2d1cd2ad0dd1e0c84e6c3b2eccf77a5bcb84cdd (diff) | |
| download | go-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.go | 2 |
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 |
