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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20030323-1.c] - Rev 823

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

/* { dg-do run } */
 
/* PR c/8224 */
/* Contributed by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> */
 
extern void abort (void);
 
unsigned f (int x)
{
  return (unsigned) (x / 2) / 2;
}
 
unsigned f1 (int x)
{
  unsigned xx = x / 2;
  return xx / 2;
}
 
int main ()
{
  if (f1 (-5) != f (-5))
    abort ();
  return 0;
}
 

Go to most recent revision | 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.