projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* device/include/stdbool.h: do not define __bool_true_false_are_defined
[fw/sdcc]
/
support
/
regression
/
tests
/
bug1734654.c
1
/* bug1734654.c
\r
2
*/
\r
3
#include <testfwk.h>
\r
4
#include <stdbool.h>
\r
5
\r
6
#ifdef __bool_true_false_are_defined
\r
7
\r
8
volatile bool b;
\r
9
volatile unsigned char c = 1;
\r
10
\r
11
static void foo (void)
\r
12
{
\r
13
b = (c<2);
\r
14
}
\r
15
\r
16
#endif //__bool_true_false_are_defined
\r
17
\r
18
void
\r
19
testMyFunc(void)
\r
20
{
\r
21
#ifdef __bool_true_false_are_defined
\r
22
foo ();
\r
23
ASSERT (b);
\r
24
#endif //__bool_true_false_are_defined
\r
25
}
\r