shithub: mc

ref: 02201160614e5f25a7a73d86ed26a1f90fa4f5bb
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))
}