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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [param1.C] - Rev 825

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

// { dg-do run }
//

// Failed on powerpc64-linux for structure sizes > 64 and with size not a
// multiple of 8 after padding.
struct object
{
  int i1;
  char s1[60];
  int i2;
  char s2[64];
};

extern int subr (struct object obj);

int main ()
{
  struct object obj;

  obj.i1 = 1234;
  obj.i2 = 5678;
  return subr (obj);
}

int subr (struct object obj)
{
  return obj.i1 != 1234 || obj.i2 != 5678;
}

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.