rust/src/test/ui/panic-handler/weak-lang-item.rs
2021-05-06 02:49:34 +00:00

12 lines
375 B
Rust

// aux-build:weak-lang-items.rs
// error-pattern: `#[panic_handler]` function required, but not found
// error-pattern: language item required, but not found: `eh_personality`
// needs-unwind since it affects the error output
// ignore-emscripten compiled with panic=abort, personality not required
#![no_std]
extern crate core;
extern crate weak_lang_items;
fn main() {}