shithub: mc

ref: 3b5584581a79cec899c7f6a5233529a64a22ab5f
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
	std.slgrow(&sl, 123)
	sl[122] = 30
	std.exit(sl[0] + sl[122])
}