shithub: mc

ref: 905f4d10a78e7e2f6eb849cf373b14cd78c87d73
dir: /test/overlappingif.myr/

View raw version
use std
/* 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

	x = 42
	if v & 0xff00 != 0
		x = 1
	elif v & 0xfff0 != 0
		x = 2
	elif v & 0xffff != 0
		x = 3
	;;
	std.exit(x)
}