X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frun-pass%2Fsmallest-hello-world.rs;h=a27d45ea17dc295f6917c1031167fe295f251d21;hb=a4024c58e1e5c92cfe3ed39ed9f5b96f3f38122e;hp=5f35bd4f7d2e2170852905186de858a605a3870a;hpb=8f1b0aa32552f2e694aa8702ff2cd6d9a0e894f1;p=rust.git diff --git a/src/test/run-pass/smallest-hello-world.rs b/src/test/run-pass/smallest-hello-world.rs index 5f35bd4f7d2..a27d45ea17d 100644 --- a/src/test/run-pass/smallest-hello-world.rs +++ b/src/test/run-pass/smallest-hello-world.rs @@ -12,10 +12,10 @@ // pretty-expanded FIXME #23616 -#![feature(intrinsics, lang_items, start, no_core, libc)] +#![feature(intrinsics, lang_items, start, no_core, alloc_system)] #![no_core] -extern crate libc; +extern crate alloc_system; extern { fn puts(s: *const u8); } extern "rust-intrinsic" { fn transmute(t: T) -> U; } @@ -23,6 +23,8 @@ #[lang = "eh_personality"] extern fn eh_personality() {} #[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {} #[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} } +#[no_mangle] pub extern fn rust_eh_register_frames () {} +#[no_mangle] pub extern fn rust_eh_unregister_frames () {} #[start] fn main(_: isize, _: *const *const u8) -> isize {