1 #![feature(lang_items, start)]
3 // windows tls dtors go through libstd right now, thus this test
4 // cannot pass. When windows tls dtors go through the special magic
5 // windows linker section, we can run this test on windows again.
6 //@ignore-target-windows: no-std not supported on Windows
8 // Plumbing to let us use `writeln!` to host stdout:
11 fn miri_write_to_stdout(bytes: &[u8]);
19 fn write_str(&mut self, s: &str) -> core::fmt::Result {
21 miri_write_to_stdout(s.as_bytes());
30 fn start(_: isize, _: *const *const u8) -> isize {
31 writeln!(Host, "hello, world!").unwrap();
36 fn panic_handler(_: &core::panic::PanicInfo) -> ! {
40 #[lang = "eh_personality"]
41 fn eh_personality() {}