This fixes a bug in argument size calculation in the case where the function has no return values. Previously it was padding the argument struct to max alignment, but this only happens if there are return values following. Updates #191
16 lines
229 B
Go
16 lines
229 B
Go
//go:build ignore
|
|
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
. "github.com/mmcloughlin/avo/build"
|
|
)
|
|
|
|
func main() {
|
|
TEXT("Uint16", 0, "func(n uint16)")
|
|
Doc("Uint16 tests argument size without return types.")
|
|
RET()
|
|
Generate()
|
|
}
|