home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / tests2.2a / boolcomp.c < prev    next >
Text File  |  1997-09-03  |  248b  |  19 lines

  1. int f (bool a, bool b)
  2. {
  3.   if (a == b) /* 1. */
  4.     {
  5.       return 3;
  6.     }
  7.   else if ((a == b) /* 2. */
  8.        == 
  9.        (a != b)) /* 3. */
  10.     {
  11.       return 5;
  12.     }
  13.   else if ((a == FALSE) == 
  14.        (b == TRUE)) /* 4. */
  15.     {
  16.       return 7;
  17.     }
  18. }
  19.