Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Un-ignore smallest-hello-world.rs #13530

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions src/test/run-pass/smallest-hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,21 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// ignore-test - FIXME(#8538) some kind of problem linking induced by extern "C" fns

// Smallest hello world with no runtime

#![no_std]

// This is an unfortunate thing to have to do on linux :(
#[cfg(target_os = "linux")]
#[doc(hidden)]
pub mod linkhack {
#[link_args="-lrustrt -lrt"]
extern {}
}
extern crate libc;

extern {
fn puts(s: *u8);
}
extern { fn puts(s: *u8); }
extern "rust-intrinsic" { fn transmute<T, U>(t: T) -> U; }

extern "rust-intrinsic" {
fn transmute<T, U>(t: T) -> U;
}
#[no_mangle]
pub extern fn rust_stack_exhausted() {}

#[start]
pub fn main(_: int, _: **u8, _: *u8) -> int {
#[no_split_stack]
fn main(_: int, _: **u8) -> int {
unsafe {
let (ptr, _): (*u8, uint) = transmute("Hello!");
puts(ptr);
Expand Down