Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/pr25310.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */ /* { dg-require-stack-size "65536+20" } */ /* Prevent spurious test failures on 16-bit targets. */ #if __INT_MAX__ >= 2147483647L extern int f (char *, int); void test (void) { char buffer[65536]; char *bufptr; char *bufend; int bytes; bufptr = buffer; bufend = buffer + sizeof(buffer) - 1; while ((bytes = f (bufptr, bufend - bufptr)) > 0) bufptr += bytes; } #endif