repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr68031.c
blob
76790a6592c31a69e8144a21669cab425e0ec760
1
/* { dg-do compile } */
2
3
void
_mktm_r
(
long
lcltime
,
int
*
res
)
4
{
5
long
rem
=
lcltime
% ((
60L
*
60L
) *
24L
);
6
if
(
rem
<
0
)
7
return
;
8
while
(
rem
>= ((
60L
*
60L
) *
24L
))
9
rem
-= ((
60L
*
60L
) *
24L
);
10
*
res
= (
int
) (
rem
%
60L
);
11
}