holey-bytes/lang/tests/son_tests_stack_provenance.txt

7 lines
289 B
Plaintext
Raw Permalink Normal View History

test.hb:5:23: returning value with local provenance (pointer will be invalid after function returns)
dangle := fn(): ^uint return &0
^
test.hb:5:30: ...the pointer points to stack allocation created here
dangle := fn(): ^uint return &0
^