diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/tests/heap.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liballoc/tests/heap.rs b/src/liballoc/tests/heap.rs index 9423aabc82b..d3ce12056bb 100644 --- a/src/liballoc/tests/heap.rs +++ b/src/liballoc/tests/heap.rs @@ -20,6 +20,11 @@ fn alloc_system_overaligned_request() { check_overalign_requests(System) } +#[test] +fn std_heap_overaligned_request() { + check_overalign_requests(Heap) +} + fn check_overalign_requests<T: Alloc>(mut allocator: T) { let size = 8; let align = 16; // greater than size |
