3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ run-make/no-alloc-shim/Makefile
177
177
run-make/no-builtins-attribute/Makefile
178
178
run-make/no-builtins-lto/Makefile
179
179
run-make/no-duplicate-libs/Makefile
180
- run-make/no-intermediate-extras/Makefile
181
180
run-make/obey-crate-type-flag/Makefile
182
181
run-make/optimization-remarks-dir-pgo/Makefile
183
182
run-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
+ use std:: fs;
10
+
11
+ fn main ( ) {
12
+ rustc ( ) . crate_type ( "rlib" ) . arg ( "--test" ) . input ( "foo.rs" ) . run ( ) ;
13
+ assert ! (
14
+ fs:: remove_file( tmp_dir( ) . join( "foo.bc" ) ) . is_err( ) ,
15
+ "An unwanted .bc file was created by run-make/no-intermediate-extras."
16
+ ) ;
17
+ }
0 commit comments