summaryrefslogtreecommitdiff
path: root/test/zwidencast.myr
blob: 2b572daa092b1a5637e06e06d1bbd4cdc037c314 (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 castto(uint32)
	std.exit(v castto(int))
}