Pass some easy tests
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 4m15s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 4m14s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 4m12s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 15m24s
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 4m17s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 4m16s
CI / ci (Release, ubuntu-latest) (push) Successful in 4m13s
CI / ci (Debug, ubuntu-latest) (push) Successful in 15m28s
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 4m15s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 4m14s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 4m12s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 15m24s
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 4m17s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 4m16s
CI / ci (Release, ubuntu-latest) (push) Successful in 4m13s
CI / ci (Debug, ubuntu-latest) (push) Successful in 15m28s
This commit is contained in:
parent
8a7c1e9fa6
commit
156fed3166
@ -2110,6 +2110,10 @@ value_is_constant = fn (value: &Value) u1
|
||||
assert(value.type != zero);
|
||||
return value.content.array_initialization.is_constant;
|
||||
},
|
||||
.select =>
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
else =>
|
||||
{
|
||||
#trap();
|
||||
@ -13703,6 +13707,22 @@ emit_assignment = fn (module: &Module, left_llvm: &LLVMValue, left_type: &Type,
|
||||
{
|
||||
// TODO: something
|
||||
},
|
||||
.select =>
|
||||
{
|
||||
if (!type_is_slice(resolved_value_type))
|
||||
{
|
||||
report_error();
|
||||
}
|
||||
|
||||
emit_value(module, right, .memory, 0);
|
||||
|
||||
create_store(module, {
|
||||
.source = right.llvm,
|
||||
.destination = left_llvm,
|
||||
.type = resolved_value_type,
|
||||
zero,
|
||||
});
|
||||
},
|
||||
else =>
|
||||
{
|
||||
#trap();
|
||||
@ -16198,6 +16218,11 @@ names: [_][]u8 =
|
||||
"basic_union",
|
||||
"break_continue",
|
||||
"constant_global_reference",
|
||||
"concat_logical_or",
|
||||
"strict_array_type",
|
||||
"pointer_struct_initialization",
|
||||
"slice_array_literal",
|
||||
"slice_only_start",
|
||||
];
|
||||
|
||||
[export] main = fn [cc(c)] (argument_count: u32, argv: &&u8, envp: &&u8) s32
|
||||
|
Loading…
x
Reference in New Issue
Block a user