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, 23 Sep 2018 17:16:53 +0000 (18:16 +0100)
commitfe25648edc07f0bb7cbad13853a3dcb0a5fd37e1
tree88b38b34d00abe26adec5cd1fde0c8cb8cb993ba
parent120f4b188d48da187945ac791a1e7f6937bb691e
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