projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* src/SDCCval.c (valShift): changed from 16 to 32 bit shift count
[fw/sdcc]
/
support
/
valdiag
/
tests
/
overflow.c
1
volatile int i;
2
3
#ifdef TEST0
4
void foo(void)
5
{
6
i = 10000 * 10000; /* WARNING(SDCC) */
7
i = 0x4000 * 0x4000; /* WARNING(SDCC) */
8
}
9
#endif
10
11
#ifdef TEST1
12
void foo(void)
13
{
14
i = 1 << 10; /* WARNING(SDCC) */
15
i = 1u << 10;
16
i = 1u << 18; /* WARNING(SDCC) */
17
i = 1L << 31;
18
i = 1L << 32; /* WARNING(SDCC) */
19
}
20
#endif
21