File tree 3 files changed +18
-10
lines changed
tests/run-make/const-prop-lint
3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ run-make/compiler-lookup-paths-2/Makefile
22
22
run-make/compiler-lookup-paths/Makefile
23
23
run-make/compiler-rt-works-on-mingw/Makefile
24
24
run-make/compressed-debuginfo/Makefile
25
- run-make/const-prop-lint/Makefile
26
25
run-make/const_fn_mir/Makefile
27
26
run-make/crate-data-smoke/Makefile
28
27
run-make/crate-hash-rustc-version/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Tests that const prop lints interrupting codegen don't leave `.o` files around.
2
+
3
+ use std:: fs;
4
+
5
+ use run_make_support:: { rustc, tmp_dir} ;
6
+
7
+ fn main ( ) {
8
+ rustc ( ) . input ( "input.rs" ) . run_fail_assert_exit_code ( 1 ) ;
9
+
10
+ for entry in fs:: read_dir ( tmp_dir ( ) ) . unwrap ( ) {
11
+ let entry = entry. unwrap ( ) ;
12
+ let path = entry. path ( ) ;
13
+
14
+ if path. is_file ( ) && path. extension ( ) . is_some_and ( |ext| ext == "o" ) {
15
+ panic ! ( "there should not be `.o` files!" ) ;
16
+ }
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments