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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr25310.c] - Rev 297

Compare with Previous | Blame | View Log

 
/* 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
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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