]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/smallest-hello-world.rs
Remove the in-tree `flate` crate
[rust.git] / src / test / run-pass / smallest-hello-world.rs
index 67affb5ae090efa4acc70ef46536355535fcb63e..a27d45ea17dc295f6917c1031167fe295f251d21 100644 (file)
 
 // pretty-expanded FIXME #23616
 
-#![feature(intrinsics, lang_items, start, no_std, libc)]
-#![no_std]
+#![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, U>(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");