mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			462 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			462 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Tests that const prop lints interrupting codegen don't leave `.o` files around.
 | |
| 
 | |
| use run_make_support::{cwd, rfs, rustc};
 | |
| 
 | |
| fn main() {
 | |
|     rustc().input("input.rs").run_fail().assert_exit_code(1);
 | |
| 
 | |
|     for entry in rfs::read_dir(cwd()) {
 | |
|         let entry = entry.unwrap();
 | |
|         let path = entry.path();
 | |
| 
 | |
|         if path.is_file() && path.extension().is_some_and(|ext| ext == "o") {
 | |
|             panic!("there should not be `.o` files!");
 | |
|         }
 | |
|     }
 | |
| }
 | 
