]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51947.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-51947.rs
1 // compile-pass
2
3 #![crate_type = "lib"]
4 #![feature(linkage)]
5
6 // MergeFunctions will merge these via an anonymous internal
7 // backing function, which must be named if ThinLTO buffers are used
8
9 #[linkage = "weak"]
10 pub fn fn1(a: u32, b: u32, c: u32) -> u32 {
11     a + b + c
12 }
13
14 #[linkage = "weak"]
15 pub fn fn2(a: u32, b: u32, c: u32) -> u32 {
16     a + b + c
17 }