2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-crate:panic_handler=panic_handler.rs
|
|
|
|
//@ ignore-cross-compile (needs dylibs and compiletest doesn't have a more specific header)
|
2023-03-14 03:55:43 +00:00
|
|
|
// compile_flags: -Zunstable-options --crate-type dylib
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ dont-check-compiler-stderr
|
|
|
|
//@ edition: 2018
|
2023-03-14 03:55:43 +00:00
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
2025-03-28 23:41:32 +00:00
|
|
|
fn foo() {} //~ ERROR `main` function not found in crate `no_force_extern`
|
|
|
|
|
|
|
|
//~? ERROR `#[panic_handler]` function required, but not found
|
|
|
|
//~? ERROR unwinding panics are not supported without std
|