test50
auto test50 =
q{--- test50
// test ptr cmp with null
// test unary branch on byte value
u64 cstrlen(u8* str) {
if (str == null) return 0;
u8* start = str;
while(*str)
{
++str;
}
return cast(u64)(str - start);
}
};
tests passing
functionsvariables