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