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
/
bug1734654.c
blob
c90152623509b747641cb096910dec3535827265
1
/* bug1734654.c
2
*/
3
#include <testfwk.h>
4
5
#ifdef __SDCC
6
#pragma std_sdcc99
7
#endif
8
9
#include <stdbool.h>
10
11
#ifdef __bool_true_false_are_defined
12
13
volatile
bool
b
;
14
volatile
unsigned char
c
=
1
;
15
16
static void
foo
(
void
)
17
{
18
b
= (
c
<
2
);
19
}
20
21
#endif
//__bool_true_false_are_defined
22
23
void
24
testMyFunc
(
void
)
25
{
26
#ifdef __bool_true_false_are_defined
27
foo
();
28
ASSERT
(
b
);
29
#endif
//__bool_true_false_are_defined
30
}