You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program should not even compile, but i tried it for fun because gcc/clang show 0 warnings with -Wall to see how c2v behaved with this code and resulted in some interesting bugs in the transpiler:
intmain ()
{
charr=-1;
unsigneds=r;
unsignedt= (unsigned char)r;
if (s!=-1)
return2;
if (t!=255)
return1;
return0;
}
is translated to:
[translated]
modulemainfnmain() {
r:=-1s:= r
t:=u8(r)
if s !=-1 {
return
}
if t !=255 {
return
}
return
}
Note:
No "return" values
Missing type/sign casts
The text was updated successfully, but these errors were encountered:
This program should not even compile, but i tried it for fun because gcc/clang show 0 warnings with -Wall to see how c2v behaved with this code and resulted in some interesting bugs in the transpiler:
is translated to:
Note:
The text was updated successfully, but these errors were encountered: