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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20070201-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR middle-end/30473 */
2
 
3
extern int sprintf (char *, const char *, ...);
4
extern void abort (void);
5
 
6
char *
7
foo (char *buf, char *p)
8
{
9
  sprintf (buf, "abcde", p++);
10
  return p;
11
}
12
 
13
int
14
main (void)
15
{
16
  char buf[6];
17
  if (foo (buf, &buf[2]) != &buf[3])
18
    abort ();
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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