1 | #include <stdio.h> |
---|---|
2 | #include <time.h> |
3 | |
4 | |
5 | static int |
6 | do_test (void) |
7 | { |
8 | struct tm t2 = { 0, 0, 0, 1, 1, 2050 - 1900, 1, 1, 1 }; |
9 | time_t tt2 = mktime (&t2); |
10 | printf (format: "%ld\n", (long int) tt2); |
11 | if (sizeof (time_t) == 4 && tt2 != -1) |
12 | return 1; |
13 | return 0; |
14 | } |
15 | |
16 | #define TEST_FUNCTION do_test () |
17 | #include "../test-skeleton.c" |
18 |