mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
		
			
				
	
	
		
			16 lines
		
	
	
		
			324 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			324 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//! This test verifies that tail call optimization does not lead to argument slot leaks.
 | 
						|
//!
 | 
						|
//! Regression test for: <https://github.com/rust-lang/rust/issues/160>
 | 
						|
 | 
						|
//@ run-pass
 | 
						|
 | 
						|
fn inner(dummy: String, b: bool) {
 | 
						|
    if b {
 | 
						|
        return inner(dummy, false);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
pub fn main() {
 | 
						|
    inner("hi".to_string(), true);
 | 
						|
}
 |