cx icon indicating copy to clipboard operation
cx copied to clipboard

for true {} loop scope is not executed

Open vidya88 opened this issue 5 years ago • 0 comments

@asahi3g commented on Mar 12

To Reproduce

package main
func main()() {
	var i i32
	for true {
		i = 55
		break
	}
	printf("i : %d\n", i)
	test(i, 55, "")
}

Expected behavior Test should print i : 55 and pass

Screenshots

i : 0
byts1 [0 0 0 0]
byts2 [55 0 0 0]
tests/pending_3.cx: 11: result was not equal to the expected value

Desktop:

  • OS: Linux
  • CX Version : 0.6.1, d8775bf

vidya88 avatar Sep 24 '19 05:09 vidya88