8 #include <sdcc-lib.h> /* just to get _AUTOMEM or _STATMEM */
13 int globals
[3] = {1, 2, 3};
14 int _STATMEM
* ptr
= &globals
[1];
16 int get_signed(signed char index
)
21 int get_signedi(int index
)
26 int get_unsigned(unsigned char index
)
34 ASSERT (get_signed(-1) == globals
[0]);
35 ASSERT (get_signedi(-1) == globals
[0]);
36 ASSERT (get_signed(1) == globals
[2]);
37 ASSERT (get_unsigned(1) == globals
[2]);