rust/tests/run-pass-valgrind/issue-44800.rs
2023-01-11 09:32:08 +00:00

13 lines
248 B
Rust

use std::alloc::System;
use std::collections::VecDeque;
#[global_allocator]
static ALLOCATOR: System = System;
fn main() {
let mut deque = VecDeque::with_capacity(32);
deque.push_front(0);
deque.reserve(31);
deque.push_back(0);
}