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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20000511-1.c] - Rev 774

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

typedef struct {
  char y;
  char x[32];
} X;
 
int z (void)
{
  X xxx;
  xxx.x[0] =
  xxx.x[31] = '0';
  xxx.y = 0xf;
  return f (xxx, xxx);
}
 
int main (void)
{
  int val;
 
  val = z ();
  if (val != 0x60)
    abort ();
  exit (0);
}
 
int f(X x, X y)
{
  if (x.y != y.y)
    return 'F';
 
  return x.x[0] + y.x[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.