From 1d47a3f01bd5ea43ce798fa6624b65dfdc6a37c0 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 20 Feb 2019 13:22:44 -0800 Subject: 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). --- tests/struct-passing.qbe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/struct-passing.qbe') 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 -- cgit v1.2.3