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-435068.c
blob
f6789a4d20482b9b7315b9d3916bff97f89b469c
1
/* bug-435068.c
2
*/
3
#include <testfwk.h>
4
5
char
c
,
d
;
6
7
static void
8
testQuestion
(
void
)
9
{
10
volatile
char
c
,
d
;
11
12
c
= (
0x100
&
0x100
) ?
4
:
8
;
// ok
13
d
= ((
0x100
&
0x100
) ?
4
:
8
) +
1
;
14
15
ASSERT
(
c
==
4
);
16
ASSERT
(
d
==
5
);
17
}