Skip to content

Commit

Permalink
Rollup merge of rust-lang#80902 - JohnTitor:issue-76281, r=Mark-Simul…
Browse files Browse the repository at this point in the history
…acrum

Add a regression test for rust-lang#76281

This has been fixed between 1.47.0-nightly (663d2f5 2020-08-22) and 1.47.0-nightly (5180f3d 2020-08-23). Maybe fixed by rust-lang#73526?

Created `wasm` dir, it currently has only one test but I'll move some wasm-related tests there as a follow-up.

Closes rust-lang#76281
  • Loading branch information
m-ou-se authored Jan 16, 2021
2 parents 5b5aa10 + 8797986 commit b3aa880
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/ui/wasm/wasm-hang-issue-76281.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// only-wasm32
// compile-flags: -C opt-level=2
// build-pass

// Regression test for #76281.
// This seems like an issue related to LLVM rather than
// libs-impl so place here.

fn main() {
let mut v: Vec<&()> = Vec::new();
v.sort_by_key(|&r| r as *const ());
}

0 comments on commit b3aa880

Please sign in to comment.