]> Cypherpunks repositories - gostls13.git/commit
runtime: add TestSizeof
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 9 Mar 2018 16:24:10 +0000 (08:24 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 9 Mar 2018 17:03:25 +0000 (17:03 +0000)
commit031f71efdf1fd72322247a92c2d1a56eac16fd45
treecb1e49ce9cc664ef7c755bd8df85ec489494f639
parentb2d1cd2ad0dd1e0c84e6c3b2eccf77a5bcb84cdd
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>
src/runtime/export_test.go
src/runtime/sizeof_test.go [new file with mode: 0644]