modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr25310.c (about) 1 /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */ 2 3 /* Prevent spurious test failures on 16-bit targets. */ 4 #if __INT_MAX__ >= 2147483647L 5 6 extern int f (char *, int); 7 8 void test (void) 9 { 10 char buffer[65536]; 11 char *bufptr; 12 char *bufend; 13 int bytes; 14 15 bufptr = buffer; 16 bufend = buffer + sizeof(buffer) - 1; 17 18 while ((bytes = f (bufptr, bufend - bufptr)) > 0) 19 bufptr += bytes; 20 } 21 22 #endif 23