shithub: mc

ref: 7ea39f801622858865e2fb06768a9f44f81b5bf8
dir: /test/slgrow.myr/

View raw version
/* checks that our slice grow function works. exits with 42. */
use std

const main = {
	var sl

	sl = std.slalloc(42)
	sl[0] = 12
	sl = std.slgrow(sl, 123)
	sl[122] = 30
	-> sl[0] + sl[122]
}