Logo
Explore Help
Register Sign In
code/avo
1
0
Fork 0
You've already forked avo
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
main
avo/tests/fixedbugs/issue191/asm.go

15 lines
216 B
Go
Raw Permalink Normal View History

gotypes: fix argument size for signatures without return types (#212) 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
2021-10-30 13:32:25 -07:00
//go:build ignore
package main
import (
update
2026-03-06 20:14:02 +00:00
. "sources.truenas.cloud/code/avo/build"
gotypes: fix argument size for signatures without return types (#212) 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
2021-10-30 13:32:25 -07:00
)
func main() {
TEXT("Uint16", 0, "func(n uint16)")
Doc("Uint16 tests argument size without return types.")
RET()
Generate()
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 169ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API