File tree 3 files changed +15
-12
lines changed
tests/run-make/lto-dylib-dep
3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ run-make/llvm-ident/Makefile
94
94
run-make/long-linker-command-lines-cmd-exe/Makefile
95
95
run-make/long-linker-command-lines/Makefile
96
96
run-make/longjmp-across-rust/Makefile
97
- run-make/lto-dylib-dep/Makefile
98
97
run-make/lto-linkage-used-attr/Makefile
99
98
run-make/lto-no-link-whole-rlib/Makefile
100
99
run-make/lto-smoke-c/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Compiling with link-time-optimizations (LTO) would previously run into an internal
2
+ // compiler error (ICE) if a dylib was passed as a required library. This was due to a
3
+ // misplaced assert! call in the compiler, which is now removed. This test checks that
4
+ // this bug does not make a resurgence and that dylib+lto compilation succeeds.
5
+ // See https://github.com/rust-lang/rust/issues/59137
6
+
7
+ //@ ignore-cross-compile
8
+
9
+ use run_make_support:: { run, rustc} ;
10
+
11
+ fn main ( ) {
12
+ rustc ( ) . input ( "a_dylib.rs" ) . crate_type ( "dylib" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
13
+ rustc ( ) . input ( "main.rs" ) . arg ( "-Clto" ) . run ( ) ;
14
+ run ( "main" ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments