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) -> ! { println!("PANIC"); loop {} } #[start] fn main(_argc: isize, _argv: *const *const u8) -> isize { let mut result: u128 = 1; for i in 0..100 { result = result.rotate_left(i); println!("result: {}, {:x}", i, result & 1); } 0 }
https://github.com/llvm-mos/llvm-mos/issues/236