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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021113-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* This program tests a data flow bug that would cause constant propagation
2
   to propagate constants through function calls.  */
3
 
4
foo (int *p)
5
{
6
  *p = 10;
7
}
8
 
9
main()
10
{
11
  int *ptr = alloca (sizeof (int));
12
  *ptr = 5;
13
  foo (ptr);
14
  if (*ptr == 5)
15
    abort ();
16
  exit (0);
17
}

powered by: WebSVN 2.1.0

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