bug-mktime1.c 323 B

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