repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated to fedora-glibc-20081112T2008
[glibc.git]
/
time
/
bug-mktime1.c
blob
e071273f057522006085ab456c3595f7a1c5932d
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
(
"%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"