11 time_t t
= time (NULL
);
12 struct tm
*tp
= localtime (&t
);
13 tp
->tm_year
= INT_MAX
;
15 char *s
= asctime (tp
);
16 if (s
!= NULL
|| errno
!= EOVERFLOW
)
18 puts ("asctime did not fail correctly");
23 s
= asctime_r (tp
, buf
);
24 if (s
!= NULL
|| errno
!= EOVERFLOW
)
26 puts ("asctime_r did not fail correctly");
32 #define TEST_FUNCTION do_test ()
33 #include "../test-skeleton.c"