shithub: mc

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