Used a more direct cross reference (as user names can change at any time) - though the answer is now deleted (only visible to users with more than 10,000 reputation points).
Did you compile your program with the optimiser enabled? The foo() function is quite simple and might have been inlined or replaced in the resulting code.
But I agree with Mark Bwith Mark B that the resulting behavior is undefined.
Did you compile your program with the optimiser enabled? The foo() function is quite simple and might have been inlined or replaced in the resulting code.
But I agree with Mark B that the resulting behavior is undefined.
Did you compile your program with the optimiser enabled? The foo() function is quite simple and might have been inlined or replaced in the resulting code.
But I agree with Mark B that the resulting behavior is undefined.
Did you compile youyour program with the optimiser enabled?
The foo()foo() function is quite simple and might have been inlined/replaced or replaced in the resulting code.
But I aggreeagree with Mark B that the resulting behavior is undefined.
Did you compile you program with the optimiser enabled?
The foo() function is quite simple and might have been inlined/replaced in the resulting code.
But I aggree with Mark B that the resulting behavior is undefined.
Did you compile your program with the optimiser enabled? The foo() function is quite simple and might have been inlined or replaced in the resulting code.
But I agree with Mark B that the resulting behavior is undefined.