diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-20 13:22:44 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-20 13:27:35 -0800 |
commit | 1d47a3f01bd5ea43ce798fa6624b65dfdc6a37c0 (patch) | |
tree | b55646706a2ce9c4569f0bb9b38eebabba1d1b07 /tests/struct-passing.qbe | |
parent | f326044f9fc4ef7e182603e8686dde3f12da42dd (diff) |
Fix definitions for nested structs
The QBE documentation suggested that the subtypes in an aggregate must
be simple types, but they can actually be any type (this is necessary
for getting the alignment and padding right between fields adjacent to
the nested struct).
Diffstat (limited to 'tests/struct-passing.qbe')
-rw-r--r-- | tests/struct-passing.qbe | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/struct-passing.qbe b/tests/struct-passing.qbe index a01bda2..07bd483 100644 --- a/tests/struct-passing.qbe +++ b/tests/struct-passing.qbe @@ -1,4 +1,5 @@ -type :s.1 = { w, b 3, h, b 3, h, d, } +type :.2 = { b 3, h, } +type :s.1 = { w, :.2 2, d, } export function $f(:s.1 %.1) { @start.1 |