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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021113-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* 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.