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 / clauses2.c < prev    next >
C/C++ Source or Header  |  1997-09-03  |  207b  |  20 lines

  1. extern /*@only@*/ int *new_ip (void);
  2.  
  3. /*@only@*/ int *f(void)
  4. {
  5.   int *x = new_ip ();
  6.   int *y;
  7.  
  8.   if (3 > 4)
  9.     {
  10.       y = x;
  11.     }
  12.   else
  13.     {
  14.       free (x);
  15.       y = new_ip ();
  16.     }
  17.  
  18.   return y;
  19. }
  20.