Skip to content

Commit 632f013

Browse files
committed
rewrite lto-linkage-used-attr to rmake
1 parent aee3dc4 commit 632f013

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ run-make/link-cfg/Makefile
4747
run-make/link-framework/Makefile
4848
run-make/long-linker-command-lines-cmd-exe/Makefile
4949
run-make/long-linker-command-lines/Makefile
50-
run-make/lto-linkage-used-attr/Makefile
5150
run-make/macos-deployment-target/Makefile
5251
run-make/min-global-align/Makefile
5352
run-make/native-link-modifier-bundle/Makefile

tests/run-make/lto-linkage-used-attr/Makefile

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Link time optimizations (LTO) used to snip away some important symbols
2+
// when setting optimization level to 3 or higher.
3+
// This is an LLVM, not a rustc bug, fixed here: https://reviews.llvm.org/D145293
4+
// This test checks that the impl_* symbols are preserved as they should.
5+
// See https://github.com/rust-lang/rust/issues/108030
6+
7+
//FIXME(Oneirical): try it on more than only-x86_64-unknown-linux-gnu
8+
9+
use run_make_support::rustc;
10+
11+
fn main() {
12+
rustc().arg("-Cdebuginfo=0").opt_level("3").input("lib.rs").run();
13+
rustc().arg("-Clto=fat").arg("-Cdebuginfo=0").opt_level("3").input("main.rs").run();
14+
}

0 commit comments

Comments
 (0)