mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			277 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			277 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags: -Copt-level=3
 | |
| //@ aux-build:always.rs
 | |
| 
 | |
| #![crate_type = "lib"]
 | |
| 
 | |
| extern crate always;
 | |
| 
 | |
| // Check that we inline a cross-crate call, even though it isn't a leaf
 | |
| #[no_mangle]
 | |
| pub fn outer() -> String {
 | |
|     // CHECK-NOT: call {{.*}}stem_fn
 | |
|     always::stem_fn()
 | |
| }
 | 
