blob: bd996cc328d010eb8172f1a9712501c98400ccb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use yaxpeax_x86::protected_mode::RegSpec;
use std::collections::{BTreeMap, HashMap};
#[test]
fn test_ord() {
let _: BTreeMap<RegSpec, u64> = BTreeMap::new();
}
#[test]
fn test_hash() {
let _: HashMap<RegSpec, u64> = HashMap::new();
}
#[test]
fn test_labels() {
assert_eq!(RegSpec::eip().name(), "eip");
assert_eq!(RegSpec::ebp().name(), "ebp");
assert_eq!(RegSpec::gs().name(), "gs");
assert_eq!(RegSpec::al().name(), "al");
}
|