rust/tests/ui/issues/issue-51947.rs

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

18 lines
353 B
Rust
Raw Normal View History

//@ build-pass
2018-11-04 04:47:10 +00:00
#![crate_type = "lib"]
#![feature(linkage)]
2018-11-04 04:47:10 +00:00
// MergeFunctions will merge these via an anonymous internal
// backing function, which must be named if ThinLTO buffers are used
2018-10-25 00:03:25 +00:00
2018-11-04 04:47:10 +00:00
#[linkage = "weak"]
pub fn fn1(a: u32, b: u32, c: u32) -> u32 {
a + b + c
}
2018-10-25 00:03:25 +00:00
2018-11-04 04:47:10 +00:00
#[linkage = "weak"]
pub fn fn2(a: u32, b: u32, c: u32) -> u32 {
a + b + c
}