25 bool (* const pa
[])(void) = {&ret_true
, &ret_false
};
38 void fieldassign(void)
48 volatile char test
= 0;
63 volatile unsigned char z
= 2;
65 const char *BOOL
= "George Boole";
68 ASSERT((*(pa
[0]))() == true);
69 ASSERT((*(pa
[1]))() == false);
77 ASSERT((E
? 1 : 0) == (!(!E
)));
78 ASSERT((E
+= 2) == 1);
79 ASSERT((--E
, --E
, E
) == E
);
82 ASSERT((E
? 1 : 0) == (!(!E
)));
83 ASSERT((E
+= 2) == 1);
84 ASSERT((--E
, --E
, E
) == E
);
86 E
= 0; ASSERT(!E
); // sets E to 0
87 E
= 1; ASSERT(E
); // sets E to 1
88 E
= 4; ASSERT(E
); // sets E to 1
89 E
= 0.5; ASSERT(E
); // sets E to 1
91 E
++; ASSERT(E
); // sets E to 1
93 E
++; ASSERT(E
); // sets E to 1
95 E
--; ASSERT(E
); // sets E to 1-E
97 E
--; ASSERT(!E
); // sets E to 1-E