shithub: mc

ref: a72122d49d80fae5d7ffce3a7eeb47b320b9f2c6
dir: /test/trunccast.myr/

View raw version
use std
/* should truncate y when casting to x, exiting with status 15 */
const main = {
	var x : uint8
	var y : int32

	y = 9999
	x = y castto(uint8)
	std.exit((x % 73) castto(int))
}