I think I may have implemented this incorrectly because the results do not make sense. I have a Go program that counts to 1000000000:
package main import (
It is possible that the compiler realized that you didn't use the "i" variable after the loop, so it optimized the final code by removing the loop.
Even if you used it afterwards, the compiler is probably smart enough to substitute the loop with
i = 1000000000;
Hope this helps =)