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
/
longor.c
blob
4e30cc5ff463a7b98ac25cc287de02459246d439
1
/** Test long OR.
2
Was a bug where 1 was turned into 0x10000 on PPC.
3
*/
4
#include <testfwk.h>
5
6
void
7
testLongOR
(
void
)
8
{
9
volatile
unsigned long
l
;
10
11
l
=
0
;
12
l
|=
1L
;
13
ASSERT
(
l
==
1
);
14
15
l
=
0
;
16
l
|=
1
;
17
ASSERT
(
l
==
1
);
18
}