1 /** bug-3778.c: Some initalized variables placed in code segement instead of const segment.
8 #if defined(__SDCC_stm8) && defined(__SDCC_MODEL_LARGE) // Fill lower 32KB of flash, so f1 or f2 is above 0x10000.
9 #define ARRAYSIZE 32000
16 j
= (j
+ 1) % (j
- 1);
18 j
= (j
- 1) % (j
+ 1);
20 j
= (j
+ 1) % (j
+ 1);
22 j
= (j
- 1) % (j
- 1);
24 j
= (j
+ 2) % (j
- 2);
26 j
= (j
- 2) % (j
+ 2);
33 const char c
[ARRAYSIZE
];
35 extern const unsigned int i
;
43 const unsigned int i
= 0xa55a; // Would be placed in CODE instead of CONST.