X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frun-pass%2Fsmallest-hello-world.rs;h=a27d45ea17dc295f6917c1031167fe295f251d21;hb=a4024c58e1e5c92cfe3ed39ed9f5b96f3f38122e;hp=134a962d3dc542b368428de7990e829d3301619b;hpb=75383ea7d7b1a4dff104be737830c1a31a6c0a73;p=rust.git diff --git a/src/test/run-pass/smallest-hello-world.rs b/src/test/run-pass/smallest-hello-world.rs index 134a962d3dc..a27d45ea17d 100644 --- a/src/test/run-pass/smallest-hello-world.rs +++ b/src/test/run-pass/smallest-hello-world.rs @@ -12,21 +12,21 @@ // 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; } -#[lang = "stack_exhausted"] extern fn stack_exhausted() {} #[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] -#[no_stack_check] fn main(_: isize, _: *const *const u8) -> isize { unsafe { let (ptr, _): (*const u8, usize) = transmute("Hello!\0");