shithub: mc

ref: 5012321224ab424e3e7b166506690dc77d34d021
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))
}