OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr25310.c] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
 
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.