Fixed inlining_loops

This commit is contained in:
peony 2024-11-03 15:22:29 +01:00
parent e27a218746
commit d4a52b6342
3 changed files with 3 additions and 2 deletions

View file

@ -1046,12 +1046,12 @@ main := fn(): uint {
```hb ```hb
x := 1 x := 1
foo := fn(): int { foo := fn(): void {
loop if true break loop if true break
x = 0 x = 0
} }
main := fn(): int { main := fn(): uint {
@inline(foo) @inline(foo)
return x return x
} }

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;
inlining_loops;
null_check_test; null_check_test;
// Just Testing Optimizations; // Just Testing Optimizations;

View file