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