11 time_t t
= time (NULL
);
12 struct tm
*tp
= localtime (&t
);
13 tp
->tm_year
= 10000 - 1900;
17 char *s
= asctime_r (tp
, buf
);
18 if (s
!= NULL
|| errno
!= EOVERFLOW
)
20 puts ("asctime_r did not fail correctly");
23 if (buf
[26] != '\xff')
25 puts ("asctime_r overwrote 27th byte in buffer");
31 #define TEST_FUNCTION do_test ()
32 #include "../test-skeleton.c"