rust/tests/run-make/no-builtins-attribute/main.rs
DianQK cc08749df2
Add the no-builtins attribute to functions when no_builtins is applied at the crate level.
When `no_builtins` is applied at the crate level, we should add the
`no-builtins` attribute to each function to ensure it takes effect in LTO.
2023-07-18 22:15:47 +08:00

11 lines
113 B
Rust

extern crate no_builtins;
#[no_mangle]
fn call_foo() {
no_builtins::foo();
}
fn main() {
call_foo();
}