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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
void bad (void);
2
char *foo (char *src, char **last)
3
{
4
  char *dst;
5
  int ch;
6
  dst = src = (src ? src : *last);
7
 
8
  if (*src == 0)
9
    return 0;
10
 
11
  while (src[0])
12
    {
13
      if (!src[1])
14
        {
15
          bad ();
16
          break;
17
        }
18
      *dst = *src;
19
      dst += 1;
20
      src += 2;
21
    }
22
  *last = src;
23
  *dst = 0;
24
  return *last;
25
}

powered by: WebSVN 2.1.0

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