diff options
| author | Alexander Regueiro <alexreg@me.com> | 2018-11-04 04:47:10 +0000 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2018-11-07 21:57:40 +0000 |
| commit | 0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3 (patch) | |
| tree | b4608c47fb643d3b8955e272b3c322274f788ecc /src/test/ui/issues/issue-51947.rs | |
| parent | d08a42bf2c2115fc1869b3a72ee40fa4dd445795 (diff) | |
| download | rust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.tar.gz rust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.zip | |
Added tests.
Diffstat (limited to 'src/test/ui/issues/issue-51947.rs')
| -rw-r--r-- | src/test/ui/issues/issue-51947.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-51947.rs b/src/test/ui/issues/issue-51947.rs new file mode 100644 index 00000000000..3e0c3c002f6 --- /dev/null +++ b/src/test/ui/issues/issue-51947.rs @@ -0,0 +1,27 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-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 +} |
