Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / 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 }