]> git.lizzy.rs Git - rust.git/blob - test-cargo-miri/src/main.rs
the test suite assumes a libstd with full MIR; run test suite on xargo-built foreign...
[rust.git] / test-cargo-miri / src / main.rs
1 use byteorder::{BigEndian, ByteOrder};
2
3 fn main() {
4     let buf = &[1,2,3,4];
5     let n = <BigEndian as ByteOrder>::read_u32(buf);
6     assert_eq!(n, 0x01020304);
7     println!("{:#010x}", n);
8     eprintln!("standard error");
9 }