summaryrefslogtreecommitdiff
path: root/test/swidencast.myr
blob: 4148540ddec0305418296f6a0796f5d6e65e8da5 (plain)
1
2
3
4
5
6
7
8
9
10
use std
/* sign extending cast. should exit with status 99 */
const main = {
	var u : int8
	var v : int32
	
	u = 99
	v = u castto(int32)
	std.exit(v castto(int))
}