d: Fix pr96435.d failing on SPARC and HPPA
The value used to initialize the integer field in the union didn't account for BigEndian targets running this code. PR d/102959 gcc/testsuite/ChangeLog: * gdc.dg/torture/pr96435.d: Adjust for BigEndian.
This commit is contained in:
parent
a16010a3ee
commit
1b5f738584
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
int[2] array = [16, 678];
|
||||
union U { int i; bool b; }
|
||||
U u;
|
||||
u.i = 0xDEADBEEF;
|
||||
u.i = 0x81818181;
|
||||
assert(array[u.b] == 678);
|
||||
return u.b;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue