Closed mrk-its closed 1 year ago
#![no_std] #![feature(start)] #![allow(unused_variables)] use core::panic::PanicInfo; use ufmt_stdio::*; #[panic_handler] fn panic(info: &PanicInfo) -> ! { loop {} } #[start] fn main(_argc: isize, _argv: *const *const u8) -> isize { let mut result: u16 = 0xff; for i in 0..2u32 { result = result.rotate_left(i); println!("r: {}", result); } 0 }
https://github.com/llvm-mos/llvm-mos/issues/234