diff options
| author | Akos Kiss <akiss@inf.u-szeged.hu> | 2014-12-12 23:39:27 +0000 |
|---|---|---|
| committer | Akos Kiss <akiss@inf.u-szeged.hu> | 2015-01-03 15:16:10 +0000 |
| commit | 6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1 (patch) | |
| tree | b6bbb41f6e5b897a93ffb89d1603ab7c16096cf1 /src/libcoretest | |
| parent | fc2ba13939aa9672d886beb06efde7aeda2d5f7f (diff) | |
| download | rust-6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1.tar.gz rust-6e5fb8bd1bef7a36c32194b35ec16d0365adbcf1.zip | |
Initial version of AArch64 support.
Adds AArch64 knowledge to: * configure, * make files, * sources, * tests, and * documentation.
Diffstat (limited to 'src/libcoretest')
| -rw-r--r-- | src/libcoretest/mem.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libcoretest/mem.rs b/src/libcoretest/mem.rs index 75ddfd5413b..96b50e8bccb 100644 --- a/src/libcoretest/mem.rs +++ b/src/libcoretest/mem.rs @@ -1,4 +1,4 @@ -// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -29,7 +29,8 @@ fn size_of_32() { } #[test] -#[cfg(target_arch = "x86_64")] +#[cfg(any(target_arch = "x86_64", + target_arch = "aarch64"))] fn size_of_64() { assert_eq!(size_of::<uint>(), 8u); assert_eq!(size_of::<*const uint>(), 8u); @@ -61,7 +62,8 @@ fn align_of_32() { } #[test] -#[cfg(target_arch = "x86_64")] +#[cfg(any(target_arch = "x86_64", + target_arch = "aarch64"))] fn align_of_64() { assert_eq!(align_of::<uint>(), 8u); assert_eq!(align_of::<*const uint>(), 8u); |
