OSDN Git Service

2009-05-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr25310.c
1
2 /* Prevent spurious test failures on 16-bit targets.  */
3 #if __INT_MAX__ >= 2147483647L
4
5 extern int f (char *, int);
6
7 void 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