]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/windows/alloc/tests.rs
:arrow_up: rust-analyzer
[rust.git] / library / std / src / sys / windows / alloc / tests.rs
1 use super::{Header, MIN_ALIGN};
2 use crate::mem;
3
4 #[test]
5 fn alloc_header() {
6     // Header must fit in the padding before an aligned pointer
7     assert!(mem::size_of::<Header>() <= MIN_ALIGN);
8     assert!(mem::align_of::<Header>() <= MIN_ALIGN);
9 }