(libc_cv_gcc_unwind_find_fde): Set for m68k, too.
[glibc.git] / time / tst-mktime.c
blob70c123c3f93bdc7dee8479159552cbc050c74656
1 #include <stdio.h>
2 #include <string.h>
3 #include <time.h>
5 int
6 main (void)
8 struct tm time_str;
9 char daybuf[20];
10 int result;
12 time_str.tm_year = 2001 - 1900;
13 time_str.tm_mon = 7 - 1;
14 time_str.tm_mday = 4;
15 time_str.tm_hour = 0;
16 time_str.tm_min = 0;
17 time_str.tm_sec = 1;
18 time_str.tm_isdst = -1;
20 if (mktime (&time_str) == -1)
22 (void) puts ("-unknown-");
23 result = 1;
25 else
27 (void) strftime (daybuf, sizeof (daybuf), "%A", &time_str);
28 (void) puts (daybuf);
29 result = strcmp (daybuf, "Wednesday") != 0;
32 return result;