shithub: mc

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