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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
int sprintf (char *s, const char *format, ...);
2
 
3
int foo(int i, int j)
4
{
5
   char *buf, *str;
6
 
7
   if (i)
8
     str = "";
9
   else if (j)
10
     str = "";
11
   else
12
     return 1;
13
 
14
   /* We were propagating &""[0] here and not calling fold_stmt with a
15
      proper statement pointer.  */
16
   sprintf(buf, str);
17
   return 0;
18
}

powered by: WebSVN 2.1.0

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