* device/include/stdbool.h: do not define __bool_true_false_are_defined
[fw/sdcc] / support / regression / tests / bug1738367.c
index a96297afebf9f07fabb0481ba5b112baaf9dfda4..f9da20e075549816b1a45325b418d7bde871236e 100644 (file)
@@ -5,14 +5,21 @@
 #include <testfwk.h>
 #include <stdbool.h>
 
-bool Ternary(unsigned char status)
+#ifdef __bool_true_false_are_defined
+
+bool ternary(unsigned char status)
 {
        return (status == 0) ? 0 : 1;
 }
 
+#endif //__bool_true_false_are_defined
+
+
 void
 testBug(void)
 {
-       ASSERT(!Ternary(0x00));
-       ASSERT( Ternary(0x10));
+#ifdef __bool_true_false_are_defined
+       ASSERT(!ternary(0x00));
+       ASSERT( ternary(0x10));
+#endif //__bool_true_false_are_defined
 }