about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-03 20:20:48 +0000
committerbors <bors@rust-lang.org>2015-01-03 20:20:48 +0000
commit496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f (patch)
tree0b4dfc99ed7c3f80a5748aca27b4bcd9a1899da1 /src/libcore
parentfe7e285d0cbae8e44c3853a6965caf2b575dcfcc (diff)
parent6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1 (diff)
downloadrust-496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f.tar.gz
rust-496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f.zip
auto merge of #19790 : akiss77/rust/aarch64-configure, r=alexcrichton
Preparing AArch64 support, starting work at the build system.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/hash/sip.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs
index 70feb3e80cc..020f0f6de9b 100644
--- a/src/libcore/hash/sip.rs
+++ b/src/libcore/hash/sip.rs
@@ -1,4 +1,4 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -419,6 +419,12 @@ mod tests {
         }
     }
 
+    #[test] #[cfg(target_arch = "aarch64")]
+    fn test_hash_uint() {
+        let val = 0xdeadbeef_deadbeef_u64;
+        assert_eq!(hash(&(val as u64)), hash(&(val as uint)));
+        assert!(hash(&(val as u32)) != hash(&(val as uint)));
+    }
     #[test] #[cfg(target_arch = "arm")]
     fn test_hash_uint() {
         let val = 0xdeadbeef_deadbeef_u64;