projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added test cases from the bug list
[fw/sdcc]
/
support
/
regression
/
tests
/
bug-221168.c
1
/* bug-221168.c
2
*/
3
#include <testfwk.h>
4
5
#define XDATA
6
7
XDATA static char x[10][20];
8
9
XDATA char *
10
getAddrOfCell(unsigned char y, unsigned char z)
11
{
12
return &x[y][z];
13
}
14
15
static void
16
testMultiDimensionalAddress(void)
17
{
18
ASSERT(getAddrOfCell(5, 6) == (char *)x + 106);
19
}