2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2018-10-11 19:50:03 -05:00
|
|
|
|
2018-11-03 23:47:10 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(linkage)]
|
2018-10-11 19:50:03 -05:00
|
|
|
|
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
|
2018-10-11 19:50:03 -05:00
|
|
|
}
|