shithub: mc

ref: c75a9bf084fa0a4cda77898cac159c7801edef27
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")
}