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-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr81592.c
blob
a37703af4970216c00219dbdf8a25638af6839c5
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall -fno-strict-overflow -Wstrict-overflow=2 -fsanitize=signed-integer-overflow" } */
3
4
#include <stdio.h>
5
6
int
proc_keys_show
(
long
expiry
,
long
now
)
7
{
8
unsigned long
timo
;
9
char
xbuf
[
4
];
10
11
if
(
now
<
expiry
) {
12
timo
=
expiry
-
now
;
13
if
(
timo
<
60
)
14
sprintf
(
xbuf
,
"%lus"
,
timo
);
15
}
16
17
return
0
;
18
}
19
20