Commit bfdabdae authored by Michael Beck's avatar Michael Beck
Browse files

enhanced fehler57 test

[r15454]
parent 0ef77c12
......@@ -4,7 +4,21 @@ int floor_log2_wide (unsigned int x)
return x;
}
unsigned test_div(int x) {
x /= -1;
return x;
}
int X;
int main()
{
printf("Res: %d\n", floor_log2_wide(4294967251));
printf("Res: %d\n", test_div(-5));
printf("Res: %d\n", -5%-1);
printf("Res: %d\n", +5%-1);
printf("Res: %d\n", -5%+1);
printf("Res: %d\n", +5%+1);
printf("Res: %d\n", X % -1);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment