d: Fix pr96435.d failing on SPARC and HPPA
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 31 Oct 2021 15:49:33 +0000 (16:49 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 31 Oct 2021 17:33:30 +0000 (18:33 +0100)
commit1b5f73858412731bb2e821bdf0fc85d6cc012d33
treeaa0d406450a9c374256f40ad949a614cf8529194
parenta16010a3eed9d5a3e49098351cf5ba18483cdc02
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.
gcc/testsuite/gdc.dg/torture/pr96435.d