summaryrefslogtreecommitdiff
path: root/test/swidencast.myr
blob: 9562edcec7c6cb32d55f08fc7ac4d0ba9c639af3 (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 : int32)
	std.exit((v : int))
}