From d4a52b6342595a941be262d12acf3b6b265b99c6 Mon Sep 17 00:00:00 2001 From: peony Date: Sun, 3 Nov 2024 15:22:29 +0100 Subject: [PATCH] Fixed `inlining_loops` --- lang/README.md | 4 ++-- lang/src/son.rs | 1 + lang/tests/son_tests_inlining_loops.txt | 0 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 lang/tests/son_tests_inlining_loops.txt diff --git a/lang/README.md b/lang/README.md index 7aae452..a1301fe 100644 --- a/lang/README.md +++ b/lang/README.md @@ -1046,12 +1046,12 @@ main := fn(): uint { ```hb x := 1 -foo := fn(): int { +foo := fn(): void { loop if true break x = 0 } -main := fn(): int { +main := fn(): uint { @inline(foo) return x } diff --git a/lang/src/son.rs b/lang/src/son.rs index 900f704..707ae74 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -4412,6 +4412,7 @@ mod tests { writing_into_string; request_page; tests_ptr_to_ptr_copy; + inlining_loops; null_check_test; // Just Testing Optimizations; diff --git a/lang/tests/son_tests_inlining_loops.txt b/lang/tests/son_tests_inlining_loops.txt new file mode 100644 index 0000000..e69de29