1 // ignore-emscripten no no_std executables
3 #![feature(lang_items, start)]
6 extern crate std as other;
8 #[macro_use] extern crate alloc;
10 use alloc::string::ToString;
13 fn start(_argc: isize, _argv: *const *const u8) -> isize {
14 let s = format!("{}", 1_isize);
15 assert_eq!(s, "1".to_string());
17 let s = format!("test");
18 assert_eq!(s, "test".to_string());
20 let s = format!("{test}", test=3_isize);
21 assert_eq!(s, "3".to_string());
23 let s = format!("hello {}", "world");
24 assert_eq!(s, "hello world".to_string());