rust/src/test/ui/issues/issue-51947.rs

18 lines
354 B
Rust
Raw Normal View History

2018-11-03 23:47:10 -05:00
// compile-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
}