* device/include/stdbool.h: do not define __bool_true_false_are_defined
[fw/sdcc] / support / regression / tests / bug1738367.c
1 /*
2    bug1738367.c
3 */
4
5 #include <testfwk.h>
6 #include <stdbool.h>
7
8 #ifdef __bool_true_false_are_defined
9
10 bool ternary(unsigned char status)
11 {
12         return (status == 0) ? 0 : 1;
13 }
14
15 #endif //__bool_true_false_are_defined
16
17
18 void
19 testBug(void)
20 {
21 #ifdef __bool_true_false_are_defined
22         ASSERT(!ternary(0x00));
23         ASSERT( ternary(0x10));
24 #endif //__bool_true_false_are_defined
25 }