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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);
2
 
3
extern char *foo (void);
4
extern void *malloc(__SIZE_TYPE__) __attribute__((malloc));
5
 
6
char v[100];
7
 
8
void baz()
9
{
10
  char *vec;
11
  char buf[512];
12
 
13
  char *p = buf;
14
  while (v[(*p)])
15
    p++;
16
 
17
  if (*p != '#' && (p = foo()) != 0) {
18
    strcpy ((char*)malloc(10), p);
19
  }
20
}
21
 
22
 

powered by: WebSVN 2.1.0

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