Skip to content

Commit

Permalink
Fix little-endian assumptions in run-pass/union/union-basic
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Aug 22, 2017
1 parent a24e0f2 commit b1e8c72
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/test/run-pass/union/union-basic.rs
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 b1e8c72

Please sign in to comment.