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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// This was failuring on powerpc-darwin and powerpc-aix as
2
// we were taking the embeded type as the first field decl.
3
//  This was PR target/18761.
4
// { dg-do run }
5
 
6
 
7
union A {
8
  double d;
9
};
10
union B {
11
  enum E { e };
12
  double d;
13
};
14
struct AlignA {
15
  char c;
16
  A a;
17
};
18
struct AlignB {
19
  char c;
20
  B b;
21
};
22
extern "C" void abort ();
23
int main () {
24
  if ( __alignof__ (AlignA) != __alignof__ (AlignB))
25
    abort ();
26
}
27
 

powered by: WebSVN 2.1.0

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