Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-971834.c
blob27df1236dd5cd47c572b77464c7f3d03580fe3d3
2 /* bug-971834.c
4 Life Range problem with
5 - uninitialized variable
6 - loop
7 */
9 #ifdef TEST1
10 unsigned char ttt = 2;
12 short foo (void)
14 unsigned short a;
15 a |= ttt; /* WARNING(SDCC || GCC) */
16 return a;
18 #endif
21 #ifdef TEST2
22 unsigned char ttt[] = {0xff, 1};
24 char foo (void)
26 unsigned char a, i;
27 for (i = 0; i < sizeof(ttt); i++)
28 a |= ttt[i]; /* WARNING(SDCC) */
29 return a;
31 #endif
33 #ifdef TEST3
34 unsigned char ttt[] = {0xff, 1};
35 unsigned char b;
37 char foo (void)
39 unsigned char i, j;
40 unsigned char a;
41 for (j = 0; j < sizeof(ttt); j++) {
42 for (i = 0; i < sizeof(ttt); i++) {
43 a |= ttt[i]; /* WARNING(SDCC) */
44 b = a;
47 return b;
49 #endif