2 // ignore-emscripten no no_std executables
4 #![feature(lang_items, start)]
7 extern crate std as other;
9 #[macro_use] extern crate alloc;
11 use alloc::string::ToString;
14 fn start(_argc: isize, _argv: *const *const u8) -> isize {
15 let s = format!("{}", 1_isize);
16 assert_eq!(s, "1".to_string());
18 let s = format!("test");
19 assert_eq!(s, "test".to_string());
21 let s = format!("{test}", test=3_isize);
22 assert_eq!(s, "3".to_string());
24 let s = format!("hello {}", "world");
25 assert_eq!(s, "hello world".to_string());