projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* src/SDCCast.c (processParms): fixed bug 2783061 by applying patch from
[fw/sdcc]
/
support
/
regression
/
tests
/
bug-868103.c
1
/** Bug 868103 tests.
2
3
storage1: near, far, code,
4
storage2: near, far,
5
*/
6
7
#ifndef STORAGE1
8
#define STORAGE1 {storage1}
9
#endif
10
11
#ifndef STORAGE2
12
#define STORAGE2 {storage2}
13
#endif
14
15
#include <testfwk.h>
16
17
typedef struct {
18
STORAGE1 char * bar[2];
19
} foo;
20
21
STORAGE1 char c = 'x';
22
STORAGE2 foo f;
23
24
void
25
testBug868103(void)
26
{
27
f.bar[1] = &c;
28
ASSERT(f.bar[1] == &c);
29
}