Skip to content

Commit

Permalink
Add a regression test for rust-lang#76281
Browse files Browse the repository at this point in the history
This has been fixed between 1.47.0-nightly (663d2f5 2020-08-22) and 1.47.0-nightly (5180f3d 2020-08-23).
  • Loading branch information
JohnTitor committed Jan 16, 2021
1 parent dcf622e commit 8797986
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 8797986

Please sign in to comment.