diff --git a/src/main.rs b/src/main.rs index 9bd2a2b..f701c8b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,11 +3,19 @@ use lumina::compile_and_run; fn main() { let source = r#" fn main() -> int { + let random = 1024; let a = [1, 2, 3]; - let b = a[1]; + let i = 0; + loop { + if a[i] == 1024 { + break; + } - return a[2]; + i -= 1; + } + + return a[i]; }"#; let result = compile_and_run(source, true);