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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20090207-1.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
int foo(int i)
int foo(int i)
{
{
  int a[32];
  int a[32];
  a[1] = 3;
  a[1] = 3;
  a[0] = 1;
  a[0] = 1;
  a[i] = 2;
  a[i] = 2;
  return a[0];
  return a[0];
}
}
extern void abort (void);
extern void abort (void);
int main()
int main()
{
{
  if (foo (0) != 2
  if (foo (0) != 2
      || foo (1) != 1)
      || foo (1) != 1)
    abort ();
    abort ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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