home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / ld / testsuite / ld-empic / runtest2.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  355b  |  27 lines

  1. /* Second C source file for actual execution test.  */
  2.  
  3. int k;
  4. extern int i;
  5. extern int j;
  6. extern char small_buf[];
  7. extern char *small_pointer;
  8.  
  9. extern int chkstr ();
  10.  
  11. int
  12. bar (n)
  13.      int n;
  14. {
  15.   int r;
  16.  
  17.   if (i != 1
  18.       || j != 0
  19.       || ! chkstr (small_buf, 4)
  20.       || ! chkstr (small_pointer, 4))
  21.     return k + 1;
  22.  
  23.   r = k;
  24.   k = n;
  25.   return r;
  26. }
  27.