#include <iostream>
// prints ALL output to trace even before this function gets traced
// but doesn't exhibit this behavior when loop code is INLINED into main
void myLoop() {
for (int i = 0; i < 5; i++) {
std::cout << "stuff " << i << std::endl;
}
}
int main() {
myLoop();
return 0;
}
example: