mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	 87c2f9a5be
			
		
	
	
		87c2f9a5be
		
	
	
	
	
		
			
			This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
		
			
				
	
	
		
			18 lines
		
	
	
		
			459 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			459 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(coverage_attribute)]
 | |
| //@ edition: 2021
 | |
| //@ min-llvm-version: 19
 | |
| //@ compile-flags: -Zcoverage-options=mcdc -Copt-level=z -Cllvm-args=--inline-threshold=0
 | |
| //@ llvm-cov-flags: --show-branches=count --show-mcdc
 | |
| 
 | |
| #[inline(always)]
 | |
| fn inlined_instance(a: bool, b: bool) -> bool {
 | |
|     a && b
 | |
| }
 | |
| 
 | |
| #[coverage(off)]
 | |
| fn main() {
 | |
|     let _ = inlined_instance(true, false);
 | |
|     let _ = inlined_instance(false, true);
 | |
|     let _ = inlined_instance(true, true);
 | |
| }
 |