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
/
bug-435214.c
blob
ae4f2441c3320adfdc1b2f8ea28cfcde3b1aa1c7
1
/* bug-435214.c
2
*/
3
#include <testfwk.h>
4
5
unsigned long
divide
(
long
a
)
6
{
7
return
a
/
512ul
;
8
}
9
10
void
11
testDivide
(
void
)
12
{
13
ASSERT
(
divide
(
1300
) ==
2
);
14
ASSERT
(
divide
(
0x12345678
) ==
0x91A2B
);
15
}
16