code wiki / (root) / smoke_codegen_bug.nx

smoke_codegen_bug.nx

buildroot/runtime/smoke_codegen_bug.nx

631 B28 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

Minimal repro for the nested-if codegen bug: outer if + 2 sequential inner ifs reading from the same struct pointer crashes when run under qemu.

dependencies 1 imports · 0 importers

syscalls.nx smoke_codegen_bug.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

structs

7struct Cell {

consts

none

functions

13func main() -> i64 {