Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
38d3c98822f9f73bfddf35f05a9bfb79df20ffa5
hakorune/apps/tests/phase131_loop_true_break_once_min.hako

25 lines
534 B
Plaintext
Raw Normal View History

test(joinir): Phase 131 loop(true) break-once fixture + VM/LLVM smokes Add minimal fixture and smoke tests for loop(true) break-once pattern: **Fixture**: - apps/tests/phase131_loop_true_break_once_min.hako - Pattern: x=0; loop(true) { x=1; break }; return x - Expected: return value 1 (exit code 1) **Smokes**: - tools/smokes/v2/profiles/integration/apps/phase131_loop_true_break_once_vm.sh - VM backend test with dev-only flags - tools/smokes/v2/profiles/integration/apps/phase131_loop_true_break_once_llvm_exe.sh - LLVM EXE backend test with plugin gating **Note**: Smokes currently fail (execution path not yet wired). Structure implementation only - follow-up phase will wire execution. Related: Phase 131 P0 (Normalized shadow structure)
2025-12-18 09:36:25 +09:00
// Phase 131 P0: loop(true) break-once minimal fixture
//
// Purpose: Test loop(true) { <assign>* ; break } in Normalized shadow
// Expected output: 1
//
// Structure:
// x = 0 // pre-loop init
// loop(true) { // condition is Bool literal true
// x = 1 // body assignment
// break // break at end
// }
// return x // return updated value
static box Main {
main() {
local x
x = 0
loop(true) {
x = 1
break
}
return x
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 32ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API