test: Phase 122 if-only Normalized emit smoke

Phase 122 P4: Fixtures and smoke tests
- New fixture: phase122_if_only_normalized_emit_min.hako
- Smoke test: phase122_if_only_normalized_emit_vm.sh
- Verifies: module emission + structure verification in dev+strict mode
- Regression check: phase103 fixture still passes
- All tests PASS
This commit is contained in:
nyash-codex
2025-12-18 04:53:04 +09:00
parent cc1a0946b0
commit 4abd434366
2 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// Phase 122: if-only Normalized JoinModule emission (dev-only)
// Goal: Minimal if-only pattern to test Normalized emission
// Expected: flag=0 → return 1, flag=1 → return 2
static box Main {
main() {
local flag = 0
local result
if flag == 0 {
result = 1
} else {
result = 2
}
print(result)
return "OK"
}
}