trunk #21

Closed
peony wants to merge 4 commits from peony/holey-bytes:trunk into trunk
2 changed files with 15 additions and 0 deletions

View file

@ -1042,6 +1042,20 @@ main := fn(): uint {
} }
``` ```
#### null_check_test
```hb
main := fn(): unit {
ptr := @as(?^uint, null)
*ptr = 0
if ptr == null {
return 1
}
return *ptr
}
```
### Just Testing Optimizations ### Just Testing Optimizations
#### const_folding_with_arg #### const_folding_with_arg

View file

@ -4412,6 +4412,7 @@ mod tests {
writing_into_string; writing_into_string;
request_page; request_page;
tests_ptr_to_ptr_copy; tests_ptr_to_ptr_copy;
null_check_test;
// Just Testing Optimizations; // Just Testing Optimizations;
const_folding_with_arg; const_folding_with_arg;