Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr25310.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
131 | 1 /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */ |
111 | 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 |