Past remaining tests #39

Merged
davidgmbb merged 18 commits from macro-tests into main 2025-06-19 16:16:21 +00:00
Showing only changes of commit 54f86ac8f3 - Show all commits

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