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