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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920520-1.c] - Rev 688

Compare with Previous | Blame | View Log

foo(int *bar)
{
  *bar = 8;
}
 
bugger()
{
  int oldDepth, newDepth;
 
  foo(&oldDepth);
 
  switch (oldDepth)
    {
    case 8:
    case 500:
      newDepth = 8;
      break;
 
    case 5000:
      newDepth = 500;
      break;
 
    default:
      newDepth = 17;
      break;
    }
 
  return newDepth - oldDepth;
}
 
main()
{
  if (bugger() != 0)
    abort ();
  exit (0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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