summaryrefslogtreecommitdiff
path: root/test/zwidencast.myr
blob: 00d10862743cdb6471430f2fe25ab0c8bf26a77e (plain)
1
2
3
4
5
6
7
8
9
10
use std
/* should zero-extend u when casting to v, returning 99 */
const main = {
	var u : uint8
	var v : uint32
	
	u = 99
	v = (u : uint32)
	std.exit((v : int))
}