Use comma operator with for-initializer
therontarigo opened this issue · comments
Input:
int a,b,c;
if(cond) {
a=0,b=1;
for (c=2;c<3;c++) ;
}
Output:
int a,b,c;
if(cond)
{
a=0,b=1;
for(c=2;c<3;c++)
;
}
Expected:
int a,b,c;
if(cond)
for(a=0,b=1,c=2;c<3;c++)
;