diff options
| author | bors <bors@rust-lang.org> | 2015-09-11 23:03:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-11 23:03:47 +0000 |
| commit | 33f0920d0e81cf95cb62f380c13f100f3e1d804c (patch) | |
| tree | 884296e220d108fa196acffbc3471e91ee01d5bc | |
| parent | c8ded9a14f16a4b5ce3facc3bedfd957dbe433fe (diff) | |
| parent | e8c398d05c92d4cdd7b3528b892355e0c000131b (diff) | |
| download | rust-33f0920d0e81cf95cb62f380c13f100f3e1d804c.tar.gz rust-33f0920d0e81cf95cb62f380c13f100f3e1d804c.zip | |
Auto merge of #28350 - dotdash:llvm_fix, r=eddyb
| m--------- | src/llvm | 0 | ||||
| -rw-r--r-- | src/rustllvm/llvm-auto-clean-trigger | 2 | ||||
| -rw-r--r-- | src/test/run-pass/allocator-override.rs | 6 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/llvm b/src/llvm -Subproject 168f91ce5cbf8933e47f339911f0f46a4871485 +Subproject 3c88bf78f97d2cd8130b16eecb0eeb84888cd49 diff --git a/src/rustllvm/llvm-auto-clean-trigger b/src/rustllvm/llvm-auto-clean-trigger index 094d485da6a..df9dc8bc841 100644 --- a/src/rustllvm/llvm-auto-clean-trigger +++ b/src/rustllvm/llvm-auto-clean-trigger @@ -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 diff --git a/src/test/run-pass/allocator-override.rs b/src/test/run-pass/allocator-override.rs index 993ea414914..d7a8e79bfbe 100644 --- a/src/test/run-pass/allocator-override.rs +++ b/src/test/run-pass/allocator-override.rs @@ -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); |
