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] - Blame information for rev 859

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

Line No. Rev Author Line
1 297 jeremybenn
extern int _xgetw();
2
extern int foo(char*);
3
 
4
void test_readmode( int ascii_mode )
5
{
6
  static const char outbuffer[]
7
    = "0,1,2,3,4,5,6,7,8,9\r\n\r\nA,B,C,D,E\r\nX,Y,Z";
8
  char buffer[2*512 +256];
9
  int i, j, ao;
10
  unsigned int fp;
11
 
12
  foo(buffer);
13
 
14
  for (i=0, j=0; i<6; i++) {
15
      if (ao==0 || outbuffer[fp-3+i] != '\r')
16
        buffer[j++] = outbuffer[fp-3+i];
17
  }
18
  _xgetw();
19
}

powered by: WebSVN 2.1.0

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