projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d47271aad412df65aac709c68a3d53f2865631f7
[fw/sdcc]
/
bug1734654.c
1
/* bug1734654.c
2
*/
3
#include <testfwk.h>
4
#include <stdbool.h>
5
6
#ifdef __bool_true_false_are_defined
7
8
volatile bool b;
9
volatile unsigned char c = 1;
10
11
static void foo (void)
12
{
13
b = (c<2);
14
}
15
16
#endif //__bool_true_false_are_defined
17
18
void
19
testMyFunc(void)
20
{
21
#ifdef __bool_true_false_are_defined
22
foo ();
23
ASSERT (b);
24
#endif //__bool_true_false_are_defined
25
}