shithub: mc

ref: 4a1f9034d1e1c0f21a9c677c0b04b61aea3d3121
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))
}