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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [align1.C] - Rev 762

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

// This was failuring on powerpc-darwin and powerpc-aix as
// we were taking the embeded type as the first field decl.
//  This was PR target/18761. 
// { dg-do run }


union A {
  double d;
};
union B {
  enum E { e };
  double d;
};
struct AlignA {
  char c;
  A a;
};
struct AlignB {
  char c;
  B b;
};
extern "C" void abort ();
int main () {
  if ( __alignof__ (AlignA) != __alignof__ (AlignB))
    abort ();
}

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.