summaryrefslogtreecommitdiffstats
path: root/tests/run-pass-valgrind/issue-44800.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-pass-valgrind/issue-44800.rs')
-rw-r--r--tests/run-pass-valgrind/issue-44800.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run-pass-valgrind/issue-44800.rs b/tests/run-pass-valgrind/issue-44800.rs
new file mode 100644
index 000000000..f76657ca7
--- /dev/null
+++ b/tests/run-pass-valgrind/issue-44800.rs
@@ -0,0 +1,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);
+}