rust/tests/run-make/lto-avoid-object-duplication/upstream.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
201 B
Rust
Raw Normal View History

2019-10-14 11:04:00 -05:00
// Make this function extern "C", public, and no-mangle, so that it gets
// exported from the downstream staticlib.
#[no_mangle]
pub extern "C" fn issue64153_test_function(x: u32) -> u32 {
x + 1
}