The wait(1) is called, but does not delay. This is indeed a special case, as the wait() function is not fully C compliant.

It makes no difference if you try that in a while or for loop. wait() always belongs in the loop body. But we'll mention that in the manual.