diff options
| author | bors <bors@rust-lang.org> | 2015-12-31 17:05:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-31 17:05:34 +0000 |
| commit | 53cd573bc8d79393676783ec124e4a2000166956 (patch) | |
| tree | cfd21c5b780782c25d7577f67525febd08121936 /src/test | |
| parent | 3b6a851db5142039a43b523c139154a20dfd7a63 (diff) | |
| parent | 7448f4861a8ee41b0a6d62b6bdaf623b3eeba453 (diff) | |
| download | rust-53cd573bc8d79393676783ec124e4a2000166956.tar.gz rust-53cd573bc8d79393676783ec124e4a2000166956.zip | |
Auto merge of #30660 - nagisa:rollup, r=steveklabnik
- Successful merges: #30365, #30565, #30590, #30630 - Failed merges:
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass-valgrind/exit-flushes.rs | 3 | ||||
| -rw-r--r-- | src/test/run-pass/mir_refs_correct.rs | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass-valgrind/exit-flushes.rs b/src/test/run-pass-valgrind/exit-flushes.rs index 76ecbfd2f22..632693dd728 100644 --- a/src/test/run-pass-valgrind/exit-flushes.rs +++ b/src/test/run-pass-valgrind/exit-flushes.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-macos this needs valgrind 3.11 or higher; see +// https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679 + use std::env; use std::process::{exit, Command}; diff --git a/src/test/run-pass/mir_refs_correct.rs b/src/test/run-pass/mir_refs_correct.rs index b46ec0d8764..93953e3f58a 100644 --- a/src/test/run-pass/mir_refs_correct.rs +++ b/src/test/run-pass/mir_refs_correct.rs @@ -68,6 +68,7 @@ enum CEnum { const C: u8 = 84; const C2: [u8; 5] = [42; 5]; const C3: [u8; 3] = [42, 41, 40]; +const C4: fn(u8) -> S = S; fn regular() -> u8 { 21 @@ -198,6 +199,11 @@ fn t23() -> (CEnum, CEnum) { (CEnum::A, CEnum::B) } +#[rustc_mir] +fn t24() -> fn(u8) -> S { + C4 +} + fn main(){ unsafe { assert_eq!(t1()(), regular()); @@ -240,5 +246,6 @@ fn main(){ assert_eq!(t21(), Unit); assert_eq!(t22(), None); assert_eq!(t23(), (CEnum::A, CEnum::B)); + assert_eq!(t24(), C4); } } |
