summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-51947.rs
blob: c877fb8aef19b402e04572badaea53f4e68320c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// build-pass

#![crate_type = "lib"]
#![feature(linkage)]

// MergeFunctions will merge these via an anonymous internal
// backing function, which must be named if ThinLTO buffers are used

#[linkage = "weak"]
pub fn fn1(a: u32, b: u32, c: u32) -> u32 {
    a + b + c
}

#[linkage = "weak"]
pub fn fn2(a: u32, b: u32, c: u32) -> u32 {
    a + b + c
}