Closed
Description
#![feature(asm)]
fn main() {
unsafe {
asm!("call foobar");
}
}
#[no_mangle]
fn foobar() {
}
The symbol and function foobar
are dropped on highest optimization level, because I assume that rustc
does not detect that it is referenced.
I believe that it could make sense for it to determine that it is indeed referenced.