blob: 949669bed0c8f977202f3482aa6f1657f342f904 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//! ARM64 tests
#![cfg(target_arch = "aarch64")]
cpufeatures::new!(armcaps, "aes", "sha2", "sha3");
#[test]
fn init() {
let token: armcaps::InitToken = armcaps::init();
assert_eq!(token.get(), armcaps::get());
}
#[test]
fn init_get() {
let (token, val) = armcaps::init_get();
assert_eq!(val, token.get());
}
|