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 / unused.c < prev    next >
C/C++ Source or Header  |  1997-09-03  |  351b  |  29 lines

  1. typedef int *dumbtype;
  2.  
  3. typedef struct _st
  4. {
  5.   int x;
  6.   int y;
  7.   int dumb;
  8.   struct _inner
  9.     {
  10.       int l;
  11.       int m;
  12.       int silly;
  13.     } inner;
  14. } st;
  15.  
  16. extern int undef (int x);
  17. static int r (void);
  18.  
  19. static int f (int x, st stx)
  20. {
  21.   return (x + stx.x + stx.y + stx.inner.l + stx.inner.m + r());
  22. }
  23.  
  24. static int r (void)
  25. {
  26.   return undef (3);
  27. }
  28.  
  29.