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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000808-1.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
typedef struct {
typedef struct {
  long int p_x, p_y;
  long int p_x, p_y;
} Point;
} Point;
 
 
void
void
bar ()
bar ()
{
{
}
}
 
 
void
void
f (p0, p1, p2, p3, p4, p5)
f (p0, p1, p2, p3, p4, p5)
     Point p0, p1, p2, p3, p4, p5;
     Point p0, p1, p2, p3, p4, p5;
{
{
  if (p0.p_x != 0 || p0.p_y != 1
  if (p0.p_x != 0 || p0.p_y != 1
      || p1.p_x != -1 || p1.p_y != 0
      || p1.p_x != -1 || p1.p_y != 0
      || p2.p_x != 1 || p2.p_y != -1
      || p2.p_x != 1 || p2.p_y != -1
      || p3.p_x != -1 || p3.p_y != 1
      || p3.p_x != -1 || p3.p_y != 1
      || p4.p_x != 0 || p4.p_y != -1
      || p4.p_x != 0 || p4.p_y != -1
      || p5.p_x != 1 || p5.p_y != 0)
      || p5.p_x != 1 || p5.p_y != 0)
    abort ();
    abort ();
}
}
 
 
void
void
foo ()
foo ()
{
{
  Point p0, p1, p2, p3, p4, p5;
  Point p0, p1, p2, p3, p4, p5;
 
 
  bar();
  bar();
 
 
  p0.p_x = 0;
  p0.p_x = 0;
  p0.p_y = 1;
  p0.p_y = 1;
 
 
  p1.p_x = -1;
  p1.p_x = -1;
  p1.p_y = 0;
  p1.p_y = 0;
 
 
  p2.p_x = 1;
  p2.p_x = 1;
  p2.p_y = -1;
  p2.p_y = -1;
 
 
  p3.p_x = -1;
  p3.p_x = -1;
  p3.p_y = 1;
  p3.p_y = 1;
 
 
  p4.p_x = 0;
  p4.p_x = 0;
  p4.p_y = -1;
  p4.p_y = -1;
 
 
  p5.p_x = 1;
  p5.p_x = 1;
  p5.p_y = 0;
  p5.p_y = 0;
 
 
  f (p0, p1, p2, p3, p4, p5);
  f (p0, p1, p2, p3, p4, p5);
}
}
 
 
int
int
main()
main()
{
{
  foo();
  foo();
  exit(0);
  exit(0);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.