mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			252 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			252 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // ignore-wasm32 compiled with panic=abort by default
 | |
| // unit-test: DataflowConstProp
 | |
| 
 | |
| fn foo(n: i32) {}
 | |
| 
 | |
| // EMIT_MIR terminator.main.DataflowConstProp.diff
 | |
| fn main() {
 | |
|     let a = 1;
 | |
|     // Checks that we propagate into terminators.
 | |
|     foo(a + 1);
 | |
| }
 | 
