mrk-its / rust-mos

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
55 stars 7 forks source link

Compilation hangs on `rotate_left` call #12

Closed mrk-its closed 1 year ago

mrk-its commented 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
}
mrk-its commented 1 year ago

https://github.com/llvm-mos/llvm-mos/issues/234