Pass 'basic_struct_passing'

This commit is contained in:
David Gonzalez Martin 2025-06-18 07:58:48 -06:00
parent a36fdc88f0
commit 54f86ac8f3

View File

@ -1731,6 +1731,11 @@ get_bit_size = fn (type: &Type) u64
>bit_size = get_bit_size(type.content.alias.type);
return bit_size;
},
.union =>
{
>result = type.content.union.byte_size * 8;
return result;
},
else =>
{
#trap();
@ -2182,6 +2187,10 @@ value_is_constant = fn (value: &Value) u1
{
return 0;
},
.zero =>
{
return 1;
},
else =>
{
#trap();
@ -17539,6 +17548,7 @@ names: [_][]u8 =
"forward_declared_type",
"enum_array",
"opaque",
"basic_struct_passing",
];
[export] main = fn [cc(c)] (argument_count: u32, argv: &&u8, envp: &&u8) s32