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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020127-1.c] - Rev 816

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

/* This used to fail on h8300.  */
 
extern void abort (void);
extern void exit (int);
 
unsigned long
foo (unsigned long n)
{
  return (~n >> 3) & 1;
}
 
int
main ()
{
  if (foo (1 << 3) != 0)
    abort ();
 
  if (foo (0) != 1)
    abort ();
 
  exit (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.