summaryrefslogtreecommitdiffstats
path: root/tests/run-pass-valgrind/issue-44800.rs
blob: f76657ca7520710f286c420332ea735a7f8c69a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}