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] - Rev 688

Compare with Previous | Blame | View Log

void bad (void);
char *foo (char *src, char **last)
{
  char *dst;
  int ch;
  dst = src = (src ? src : *last);
 
  if (*src == 0)
    return 0;
 
  while (src[0])
    {
      if (!src[1])
	{
	  bad ();
	  break;
	}
      *dst = *src;
      dst += 1;
      src += 2;
    }
  *last = src;
  *dst = 0;
  return *last;
}
 

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.