mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
cc08749df2
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.
11 lines
113 B
Rust
11 lines
113 B
Rust
extern crate no_builtins;
|
|
|
|
#[no_mangle]
|
|
fn call_foo() {
|
|
no_builtins::foo();
|
|
}
|
|
|
|
fn main() {
|
|
call_foo();
|
|
}
|