code wiki / (root) / smoke_repro.nx

smoke_repro.nx

buildroot/runtime/smoke_repro.nx

838 B41 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

smoke_repro.nx -- minimal repro of codegen bug. Mirrors lex.nx's lex_ident_or_kw shape: alloc one struct, init fields, alloc another struct, init fields, while loop that reads struct fields. Should exit 7.

dependencies 1 imports · 0 importers

syscalls.nx smoke_repro.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main work

structs

9struct S {

consts

none

functions

15func work(L: *S) -> i64 {
called by 1: main
33func main() -> i64 {
calls 1: work