OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40035.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef __SIZE_TYPE__ size_t;
2
void *memmove (void *dest, const void *src, size_t count);
3
size_t strlen (const char *s);
4
 
5
int
6
foo (char *param, char *val)
7
{
8
  if (val)
9
    {
10
      if (val == param + strlen (param) + 1)
11
        val[-1] = '=';
12
      else if (val == param + strlen (param) + 2)
13
        {
14
          val[-2] = '=';
15
          memmove (val - 1, val, strlen (val) + 1);
16
          val--;
17
        }
18
    }
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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