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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr41634.c] - Rev 816

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

extern int _xgetw();
extern int foo(char*);
 
void test_readmode( int ascii_mode )
{
  static const char outbuffer[]
    = "0,1,2,3,4,5,6,7,8,9\r\n\r\nA,B,C,D,E\r\nX,Y,Z";
  char buffer[2*512 +256];
  int i, j, ao;
  unsigned int fp;
 
  foo(buffer);
 
  for (i=0, j=0; i<6; i++) {
      if (ao==0 || outbuffer[fp-3+i] != '\r')
	buffer[j++] = outbuffer[fp-3+i];
  }
  _xgetw();
}
 

Go to most recent revision | 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.