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
352 B
Rust
Raw Normal View History

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