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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr21584-2.C] - Rev 693

Compare with Previous | Blame | View Log

extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);

extern char *foo (void);
extern void *malloc(__SIZE_TYPE__) __attribute__((malloc));

char v[100];

void baz()
{
  char *vec;
  char buf[512];

  char *p = buf;
  while (v[(*p)])
    p++;

  if (*p != '#' && (p = foo()) != 0) {
    strcpy ((char*)malloc(10), p);
  }
}


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.