]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/no_std.rs
Auto merge of #99609 - workingjubilee:lossy-unix-strerror, r=thomcc
[rust.git] / src / tools / miri / tests / pass / no_std.rs
1 #![feature(lang_items, start)]
2 #![no_std]
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
7
8 #[start]
9 fn start(_: isize, _: *const *const u8) -> isize {
10     for _ in 0..10 {}
11
12     0
13 }
14
15 #[panic_handler]
16 fn panic_handler(_: &core::panic::PanicInfo) -> ! {
17     loop {}
18 }
19
20 #[lang = "eh_personality"]
21 fn eh_personality() {}