runtime: add padding to FFI type of struct ending with zero-sized field

CL 157557 changes the compiler to add one byte padding to
non-empty struct ending with a zero-sized field. Add the same
padding to the FFI type, so reflect.Call works.

This fixes test/fixedbugs/issue26335.go in the main repo.

Change-Id: Idfb6b67c2cb6f3d00be5ac48492e55e4d8995cc3
Reviewed-on: https://go-review.googlesource.com/c/158018
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed