2023-04-10 11:20:38 +00:00
|
|
|
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
|
|
|
|
|
|
|
|
//@ dont-check-compiler-stderr
|
2025-05-02 15:29:00 +00:00
|
|
|
|
|
|
|
// NOTE: fix a panic strategy to prevent differing errors subject to target's default panic strategy
|
|
|
|
// which changes between targets. The specific panic strategy doesn't matter for test intention.
|
|
|
|
//@ compile-flags: -Cpanic=abort
|
|
|
|
|
2023-04-10 11:20:38 +00:00
|
|
|
//@ aux-build: cfg_false_lib_no_std_before.rs
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
extern crate cfg_false_lib_no_std_before as _;
|
|
|
|
|
|
|
|
fn main() {}
|
2025-03-28 23:41:32 +00:00
|
|
|
|
2025-04-09 06:51:50 +00:00
|
|
|
//~? ERROR `#[panic_handler]` function required, but not found
|