shithub: mc

ref: f762f96f07cf2dfc7b3bb745d6a767dccda0a01a
dir: /test/foroptexpr.myr/

View raw version
use std

const main = {
	var i
	
	for i = 0; ; i++
		if i == 10
			break
		;;
	;;
	if i != 10
		std.exit(1)
	;;
	
	i = 0
	for var j = 0; ; j++
		if j == 10
			break
		;;
		i++
	;;
	if i != 10
		std.exit(2)
	;;
	
	i = 0
	for ; ;
		i++
		if i == 10
			break
		;;
	;;
	if i != 10
		std.exit(3)
	;;
	
	i = 0
	for ; i < 10;
		i++
	;;
	if i != 10
		std.exit(4)
	;;
	
	for i = 0 ; ;
		if i == 10
			break
		;;
		i++
	;;
	if i != 10
		std.exit(5)
	;;
	
	i = 0
	for ; ; i++
		if i == 10
			break
		;;
	;;
	if i != 10
		std.exit(6)
	;;
	std.put("pass\n")
}