1 2/* Prevent spurious test failures on 16-bit targets. */ 3#if __INT_MAX__ >= 2147483647L 4 5extern int f (char *, int); 6 7void test (void) 8{ 9 char buffer[65536]; 10 char *bufptr; 11 char *bufend; 12 int bytes; 13 14 bufptr = buffer; 15 bufend = buffer + sizeof(buffer) - 1; 16 17 while ((bytes = f (bufptr, bufend - bufptr)) > 0) 18 bufptr += bytes; 19} 20 21#endif 22 23