summaryrefslogtreecommitdiffstats
path: root/tests/ui/wasm/wasm-hang-issue-76281.rs
blob: a4adfa6d0446171d4a6e602170e4319177fff39d (plain)
1
2
3
4
5
6
7
8
9
10
11
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 ());
}