run-pass/const-endianness: negate before to_le()
authorJosh Stone <jistone@redhat.com>
Mon, 30 Jul 2018 20:08:56 +0000 (13:08 -0700)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Aug 2018 09:18:10 +0000 (10:18 +0100)
commitb2ed207104a99025e6525645c9f500660c014194
tree7a43ae1b661dc32045e44c380ee29ec0e6e95b3b
parent5e532171f5747a2e25f8d74b4aafbb86e5624a11
run-pass/const-endianness: negate before to_le()

`const LE_I128` needs parentheses to negate the value *before* calling
`to_le()`, otherwise it doesn't match the operations performed in the
black-boxed part of the test.  This only makes a tangible difference on
big-endian targets.

Gbp-Pq: Name u-rust-52876-const-endianess.patch
src/test/run-pass/const-endianess.rs