1
0
mirror of https://github.com/mirror/tinycc.git synced 2025-03-26 12:04:59 +08:00
tinycc/tests/tests2/134_double_to_signed.c

11 lines
194 B
C

#include <stdio.h>
int main() {
printf("%d\n", (int)-1.0);
double d = -1.0;
printf("%d\n", (int)d);
printf("%d\n", (int)-2147483648.0);
d = -2147483648.0;
printf("%d\n", (int)d);
}