shithub: mc

ref: 34c3e5b0116a5283433c9cf6c3484ee6967e3030
dir: /test/overlappingif.myr/

View raw version
/* checks that if multiple if conditions are valid, only the first is
* selected. should exit with 2. */
const main = {
	var v
	var x

	v = 0xff

	if v & 0xff00 != 0
		x = 1
	elif v & 0xfff0 != 0
		x = 2
	elif v & 0xffff != 0
		x = 3
	;;
	-> x
}