repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug1198642.c
blob
f2ae61608c82aa8fd83cf067cb14a955109dfbdc
1
/*
2
bug1198642.c
3
*/
4
5
#include <testfwk.h>
6
7
void
8
test_cse_generic_ptr
(
void
)
9
{
10
#if defined(__SDCC_mcs51)
11
volatile
void
*
p1
;
12
volatile
void
*
p2
;
13
14
p1
= (
__data
char
*)
1
;
15
p2
= (
__idata
char
*)
1
;
16
ASSERT
(
p1
==
p2
);
17
18
p1
= (
__data
char
*)
1
;
19
p2
= (
__xdata
char
*)
1
;
20
ASSERT
(
p1
!=
p2
);
21
22
p1
= (
__data
char
*)
1
;
23
p2
= (
__idata
char
*)
2
;
24
ASSERT
(
p1
!=
p2
);
25
#endif
26
}