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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20030828-1.c] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
const int *p;
2
 
3
int bar (void)
4
{
5
  return *p + 1;
6
}
7
 
8
main ()
9
{
10
  /* Variable 'i' is never used but it's aliased to a global pointer.  The
11
     alias analyzer was not considering that 'i' may be used in the call to
12
     bar().  */
13
  const int i = 5;
14
  p = &i;
15
  if (bar() != 6)
16
    abort ();
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

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