Skip to content

Commit

Permalink
test: Un-ignore smallest-hello-world.rs
Browse files Browse the repository at this point in the history
Rebased through the ages to bring the test up to date.

Closes #8538
  • Loading branch information
alexcrichton committed Apr 16, 2014
1 parent c8f5b70 commit 9e8a270
Showing 1 changed file with 7 additions and 16 deletions.
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

0 comments on commit 9e8a270

Please sign in to comment.