foralex / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

return inside switch() doesn't work #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
int MyFunc(int i)
{
       switch (i)
       {
       case 1:
               return(1);
       }
       return(0);
}

printf("%d\n", MyFunc(1));

Should print 1 but it prints 0.

Original issue reported on code.google.com by zik.sale...@gmail.com on 8 Feb 2011 at 8:47

GoogleCodeExporter commented 8 years ago
Fixed in revision #506

Original comment by zik.sale...@gmail.com on 11 Feb 2011 at 4:50