File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed
tests/run-make/const-prop-lint Expand file tree Collapse file tree 3 files changed +19
-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
+ // Test that emitting an error because of arithmetic overflow lint does not leave .o files around
2
+ // because of interrupted codegen.
3
+
4
+ use std:: fs;
5
+
6
+ use run_make_support:: { rustc, tmp_dir} ;
7
+
8
+ fn main ( ) {
9
+ rustc ( ) . input ( "input.rs" ) . run_fail_assert_exit_code ( 1 ) ;
10
+
11
+ for entry in fs:: read_dir ( tmp_dir ( ) ) . unwrap ( ) {
12
+ let entry = entry. unwrap ( ) ;
13
+ let path = entry. path ( ) ;
14
+
15
+ if path. is_file ( ) && path. extension ( ) . and_then ( |ext| ext. to_str ( ) ) == Some ( "o" ) {
16
+ panic ! ( "There should not be `.o` files!" ) ;
17
+ }
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments