shithub: mc

ref: 10c5a7f3c6bd6d8c52a42f3d7ffb64eed6edf677
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 : uint8)
	std.exit((x % 73 : int))
}