This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ run-make/no-alloc-shim/Makefile
179179run-make/no-builtins-attribute/Makefile
180180run-make/no-builtins-lto/Makefile
181181run-make/no-duplicate-libs/Makefile
182- run-make/no-intermediate-extras/Makefile
183182run-make/obey-crate-type-flag/Makefile
184183run-make/optimization-remarks-dir-pgo/Makefile
185184run-make/optimization-remarks-dir/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // When using the --test flag with an rlib, this used to generate
2+ // an unwanted .bc file, which should not exist. This test checks
3+ // that the bug causing the generation of this file has not returned.
4+ // See https://github.com/rust-lang/rust/issues/10973
5+
6+ //@ ignore-cross-compile
7+
8+ use run_make_support:: { rustc, tmp_dir} ;
9+
10+ fn main ( ) {
11+ rustc ( ) . crate_type ( "rlib" ) . arg ( "--test" ) . input ( "foo.rs" ) . run ( ) ;
12+ match fs:: remove_file ( tmp_dir ( ) . join ( "foo.bc" ) ) {
13+ Ok ( _) => {
14+ println ! ( "An unwanted .bc file was created by run-make/no-intermediate-extras." ) ;
15+ std:: process:: exit ( 0 ) ;
16+ } ,
17+ Err ( e) => {
18+ std:: process:: exit ( 1 ) ;
19+ }
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments