smokes: add curated LLVM runner; archive legacy smokes; PHI-off unified across Bridge/Builder; LLVM resolver tracing; minimal Throw lowering; config env getters; dev profile and root cleaner; docs updated; CI workflow runs curated LLVM (PHI-on/off)
This commit is contained in:
26
apps/tests/llvm_stage3_break_continue.nyash
Normal file
26
apps/tests/llvm_stage3_break_continue.nyash
Normal file
@ -0,0 +1,26 @@
|
||||
// Stage-3 regression smoke: break/continue executes once; with bridge throw/try flags enabled the catch sets 42 and finally runs.
|
||||
static box Main {
|
||||
main() {
|
||||
local break_counter = 0
|
||||
loop (true) {
|
||||
break_counter = break_counter + 1
|
||||
if break_counter == 3 {
|
||||
break
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
local caught = 0
|
||||
local finally_flag = 0
|
||||
try {
|
||||
throw 42
|
||||
} catch (Error e) {
|
||||
caught = 42
|
||||
} finally {
|
||||
finally_flag = 1
|
||||
}
|
||||
|
||||
print("Result: " + (break_counter + caught + finally_flag))
|
||||
return 0
|
||||
}
|
||||
}
|
||||
14
apps/tests/llvm_stage3_loop_only.nyash
Normal file
14
apps/tests/llvm_stage3_loop_only.nyash
Normal file
@ -0,0 +1,14 @@
|
||||
// Stage-3 smoke (LLVM): loop control only (break/continue) — expected Result: 3
|
||||
static box Main {
|
||||
main() {
|
||||
local counter = 0
|
||||
loop (true) {
|
||||
counter = counter + 1
|
||||
if counter == 3 { break }
|
||||
continue
|
||||
}
|
||||
print("Result: " + counter)
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user