* device/include/stdbool.h: do not define __bool_true_false_are_defined
[fw/sdcc] / support / regression / tests / bug1734654.c
index 4983bad09fdd8e7681a614f3f704423c8b5724cc..8eecc153b77f84f120c27423e432a7c0784cd46c 100644 (file)
@@ -1,19 +1,25 @@
-/* bug1734654.c
- */
-#include <testfwk.h>
-#include <stdbool.h>
-
-volatile bool b;
-volatile unsigned char c = 1;
-
-static void foo (void)
-{
-  b = (c<2);
-}
-
-void
-testMyFunc(void)
-{
-  foo ();
-  ASSERT (b);
-}
+/* bug1734654.c\r
+ */\r
+#include <testfwk.h>\r
+#include <stdbool.h>\r
+\r
+#ifdef __bool_true_false_are_defined\r
+\r
+volatile bool b;\r
+volatile unsigned char c = 1;\r
+\r
+static void foo (void)\r
+{\r
+  b = (c<2);\r
+}\r
+\r
+#endif //__bool_true_false_are_defined\r
+\r
+void\r
+testMyFunc(void)\r
+{\r
+#ifdef __bool_true_false_are_defined\r
+  foo ();\r
+  ASSERT (b);\r
+#endif //__bool_true_false_are_defined\r
+}\r