]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: assert size of important types
authorDave Cheney <dave@cheney.net>
Sun, 6 Mar 2016 02:04:52 +0000 (13:04 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 6 Mar 2016 04:09:07 +0000 (04:09 +0000)
commit8f5fb95db6573f132bcfd0b3f9541faa84058fa0
treeb2e7013e0b8cad8989ddd305706b5407bf99d997
parentbd6d84282a441a35b4629eaa958d3ce24d396a6f
cmd/compile/internal/gc: assert size of important types

Add tests to ensure that the size of important types don't change
unexpectedly.

Skip the test on nacl platforms because of their unusual padding
requirements.

Change-Id: Iddb127a99499e089a309b721f5073356c0da8b24
Reviewed-on: https://go-review.googlesource.com/20285
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Dave Cheney <dave@cheney.net>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/sizeof_test.go [new file with mode: 0644]
src/cmd/internal/obj/sizeof_test.go [new file with mode: 0644]