]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/windows/alloc/tests.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[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 }