cx
cx copied to clipboard
for true {} loop scope is not executed
@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