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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/* Testcase for PR fortran/9974.  This was a miscompilation of the g77
   front-end caused by the jump bypassing optimizations not handling
   instructions inserted on CFG edges.  */
 
extern void abort ();
 
int bar ()
{
  return 1;
}
 
void foo (int x)
{
  unsigned char error = 0;
 
  if (! (error = ((x == 0) || bar ())))
    bar ();
  if (! error)
    abort ();
}
 
int main()
{
  foo (1);
  return 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.