diff options
Diffstat (limited to 'tests/ui/panic-handler/panic-handler-missing.rs')
-rw-r--r-- | tests/ui/panic-handler/panic-handler-missing.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/panic-handler/panic-handler-missing.rs b/tests/ui/panic-handler/panic-handler-missing.rs new file mode 100644 index 000000000..6bb062ba6 --- /dev/null +++ b/tests/ui/panic-handler/panic-handler-missing.rs @@ -0,0 +1,9 @@ +// dont-check-compiler-stderr +// error-pattern: `#[panic_handler]` function required, but not found + +#![feature(lang_items)] +#![no_main] +#![no_std] + +#[lang = "eh_personality"] +fn eh() {} |