Skip to content

Commit

Permalink
Rollup merge of rust-lang#44047 - cuviper:union-basic-endian, r=petro…
Browse files Browse the repository at this point in the history
…chenkov

Fix little-endian assumptions in run-pass/union/union-basic

None
  • Loading branch information
frewsxcv authored Aug 23, 2017
2 parents 86f0f44 + b1e8c72 commit e9853c4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/test/run-pass/union/union-basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

// aux-build:union.rs

// FIXME: This test case makes little-endian assumptions.
// ignore-s390x
// ignore-sparc

extern crate union;
use std::mem::{size_of, align_of, zeroed};

Expand All @@ -39,7 +35,7 @@ fn local() {
assert_eq!(w.b, 0);
w.a = 1;
assert_eq!(w.a, 1);
assert_eq!(w.b, 1);
assert_eq!(w.b.to_le(), 1);
}
}

Expand All @@ -60,7 +56,7 @@ fn xcrate() {
assert_eq!(w.b, 0);
w.a = 1;
assert_eq!(w.a, 1);
assert_eq!(w.b, 1);
assert_eq!(w.b.to_le(), 1);
}
}

Expand Down

0 comments on commit e9853c4

Please sign in to comment.