repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
valdiag
/
tests
/
bug-3457.c
blob
c6fcd6fb1f2d89a502d1339c6ce8a9e25c650c15
1
/* bug-3457.c
2
3
Wrong line number on divide by 0 warning
4
5
Based on GPL 2.0 code by "Under4MHz"
6
*/
7
8
#ifdef TEST1
9
int
abs
(
int
);
10
11
void
test
(
void
) {
12
13
int
Y
=
0
;
14
15
int
inf
=
abs
(
1
/
Y
);
/* WARNING(SDCC) */
/* IGNORE(GCC) */
16
int
a
=
0
;
17
int
b
=
0
;
18
int
c
=
0
;
19
for
(
int
i
=
0
;
i
<
10
;
i
++)
20
{
21
c
++;
22
}
23
}
24
#endif
25