Add test to ensure struct sizes are correct

This commit is contained in:
Matt Bilker
2021-10-09 10:45:46 +00:00
parent 2a9a81290b
commit 80e3397a44

View File

@@ -458,3 +458,9 @@ fn apply_profile_override(config: &mut VgpuConfig) -> bool {
true
}
#[test]
fn test_size() {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420);
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
}