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

Subversion Repositories openrisc

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

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

/* Distilled from optimization/863.  */
 
extern void abort (void);
extern void exit (int);
extern void ok (int);
 
typedef struct
{
  int x, y, z;
} Data;
 
void find (Data *first, Data *last)
{
  int i;
  for (i = (last - first) >> 2; i > 0; --i)
    ok(i);
  abort ();
}
 
void ok(int i)
{
  if (i != 1)
    abort ();
  exit (0);
}
 
int
main ()
{
  Data DataList[4];
  find (DataList + 0, DataList + 4);
}
 

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.