tests: test functions with random signatures (#216)

Adds a test for function signature memory layout by generating functions with
random signatures. This confirms that the size and offsets computed by
`gotypes` agree with `asmdecl`.

Updates #191 #195
This commit is contained in:
Michael McLoughlin
2021-10-30 18:22:24 -07:00
committed by GitHub
parent bcbebd5674
commit 6acd6a048d
4 changed files with 2131 additions and 0 deletions

4
tests/signature/gen.go Normal file
View File

@@ -0,0 +1,4 @@
// Package signature tests handling of random function signatures.
package signature
//go:generate go run asm.go -out signature.s -stubs stub.go -seed 42 -num 256