about summary refs log tree commit diff
path: root/tests/codegen/binary-heap-peek-mut-pop-no-panic.rs
blob: 9cf4f210e527a0dfa0fd6e9407b0e711af492015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ compile-flags: -O
//@ ignore-debug
#![crate_type = "lib"]

use std::collections::binary_heap::PeekMut;

// CHECK-LABEL: @peek_mut_pop
#[no_mangle]
pub fn peek_mut_pop(peek_mut: PeekMut<u32>) -> u32 {
    // CHECK-NOT: panic
    // CHECK-NOT: unwrap_failed
    PeekMut::pop(peek_mut)
}