Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/llvm
2 changes: 1 addition & 1 deletion src/rustllvm/llvm-auto-clean-trigger
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
# The actual contents of this file do not matter, but to trigger a change on the
# build bots then the contents should be changed so git updates the mtime.
2015-09-02
2015-09-11
6 changes: 5 additions & 1 deletion src/test/run-pass/allocator-override.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
// no-prefer-dynamic
// aux-build:allocator-dummy.rs

#![feature(test)]

extern crate allocator_dummy;
extern crate test;

fn main() {
unsafe {
let before = allocator_dummy::HITS;
let b = Box::new(3);
let mut b = Box::new(3);
test::black_box(&mut b); // Make sure the allocation is not optimized away
assert_eq!(allocator_dummy::HITS - before, 1);
drop(b);
assert_eq!(allocator_dummy::HITS - before, 2);
Expand Down