summary refs log tree commit diff
path: root/tests/ui/no_std/no-std-unwind-binary.rs
blob: 7a9dfd7a48d93f6419058aebcab7e6b72fe573d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// error-pattern:unwinding panics are not supported without std
// needs-unwind
// compile-flags: -Cpanic=unwind

// Make sure that we don't emit an error message mentioning internal lang items.

#![no_std]
#![no_main]

#[panic_handler]
fn handler(_info: &core::panic::PanicInfo<'_>) -> ! {
    loop {}
}

fn main() {}