fix a bug which is converting from for(;;) to while()

This commit is contained in:
Hiroyuki Ikegami
2013-03-18 22:02:42 +09:00
committed by Pavel V. Talanov
parent 55c00b08e7
commit 8c66f744b4
8 changed files with 37 additions and 4 deletions
@@ -0,0 +1 @@
for (init(); ; update()) body();
@@ -0,0 +1,10 @@
{
init()
while (true)
{
body()
{
update()
}
}
}
@@ -0,0 +1 @@
for (; condition() ; update()) body();
@@ -0,0 +1,9 @@
{
while (condition())
{
body()
{
update()
}
}
}
@@ -0,0 +1 @@
for (init(); condition(); ) body();
@@ -0,0 +1,7 @@
{
init()
while (condition())
{
body()
}
}