1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Fix tests...

This commit is contained in:
Colin Leroy-Mira 2024-01-31 08:11:46 +01:00
parent 7d7cf2d1e0
commit ce606bb19e
4 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ int main (void)
printf("wrong result on int %d << 7: %04X, expected %04X\n", ai, ti, refi);
return 1;
}
} while (ai != -32768);
} while (++ai != -32768);
do {
refc = ac << 4;
@ -38,7 +38,7 @@ int main (void)
printf("wrong result on char %d << 7: %04X, expected %04X\n", ac, tc, refc);
return 1;
}
} while (ac != -128);
} while (++ac != -128);
return 0;
}

View File

@ -26,7 +26,7 @@ int main (void)
printf("wrong result on int %d >> 7: %04X, expected %04X\n", ai, ti, refi);
return 1;
}
} while (ai != -32768);
} while (++ai != -32768);
do {
refc = ac >> 4;
@ -38,7 +38,7 @@ int main (void)
printf("wrong result on char %d >> 7: %04X, expected %04X\n", ac, tc, refc);
return 1;
}
} while (ac != -128);
} while (++ac != -128);
return 0;
}

View File

@ -26,7 +26,7 @@ int main (void)
printf("wrong result on int %u << 7: %04X, expected %04X\n", ai, ti, refi);
return 1;
}
} while (ai != 0);
} while (++ai != 0);
do {
refc = ac << 4;
@ -38,7 +38,7 @@ int main (void)
printf("wrong result on char %u << 7: %04X, expected %04X\n", ac, tc, refc);
return 1;
}
} while (ac != 0);
} while (++ac != 0);
return 0;
}

View File

@ -26,7 +26,7 @@ int main (void)
printf("wrong result on int %d >> 7: %04X, expected %04X\n", ai, ti, refi);
return 1;
}
} while (ai != 0);
} while (++ai != 0);
do {
refc = ac >> 4;
@ -38,7 +38,7 @@ int main (void)
printf("wrong result on char %d >> 7: %04X, expected %04X\n", ac, tc, refc);
return 1;
}
} while (ac != 0);
} while (++ac != 0);
return 0;
}