]> andersk Git - splint.git/blame - test/tests2.2/boolops.c
Added support for ISO C99 _Bool and stdbool bool/true/false. The
[splint.git] / test / tests2.2 / boolops.c
CommitLineData
885824d3 1/*@-booltype Kzam@*/
2typedef int Kzam;
3
0bd4c301 4enum { true, false } ; /* changed to be consistent with ISO true/false */
885824d3 5
6int main() {
0bd4c301 7 Kzam b = true;
885824d3 8 Kzam b1 = b;
9
0bd4c301 10 b = true;
885824d3 11 b = b1;
12 b = 12; /* Assignment of int to Kzam: b = 12 */
13
0bd4c301 14 b = true && false;
15 b = b && false;
16 b = false && b;
885824d3 17
0bd4c301 18 if ((b && false) == 0)
885824d3 19 return(0);
20 return(0);
21}
This page took 0.075605 seconds and 5 git commands to generate.