1 // PR optimization/12926
2 // This failed on SPARC64 because the assignments to the bit-fields
3 // were wrongly swapped in the constructor.
6 // { dg-options "-O2" }
8 extern "C" void abort(void);
10 typedef __SIZE_TYPE__ size_t;
18 int foo1(void *, const char *);
19 int foo2(int, const Type);
21 A (const size_t size, const Type type): mSize(size), mType(type)
23 foo2(foo1(my_out, "type = "), type);
24 foo2(foo1(my_out, "mType = "), mType);
27 const size_t mSize : 8*sizeof(size_t) - 3;
33 int A::foo1(void *ios, const char *str) { return 0; }
34 int A::foo2(int v, const Type t) { i=0; return 0; }
40 if (testa.mType != A::S)