Add regression test for #107918

This commit is contained in:
Guillaume Gomez 2023-02-24 18:15:56 +01:00
parent 07c993eba8
commit 37d4302c25
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// compile-flags: -C panic=abort
#![no_std]
#![no_main]
#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}

View File

@ -0,0 +1,11 @@
// aux-build:panic-handler.rs
// compile-flags: --document-private-items
// build-pass
#![no_std]
#![no_main]
#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}