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