shithub: mc

ref: 81bbd4c2bf2f3b7ccf53d2f46aef65f56e0ae7e5
dir: /test/trunccast.myr/

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

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