mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 87c2f9a5be
			
		
	
	
		87c2f9a5be
		
	
	
	
	
		
			
			This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
		
			
				
	
	
		
			19 lines
		
	
	
		
			455 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			455 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(coverage_attribute)]
 | |
| //@ edition: 2021
 | |
| //@ min-llvm-version: 19
 | |
| //@ compile-flags: -Zcoverage-options=mcdc
 | |
| //@ llvm-cov-flags: --show-branches=count --show-mcdc
 | |
| 
 | |
| fn accept_7_conditions(bool_arr: [bool; 7]) {
 | |
|     let [a, b, c, d, e, f, g] = bool_arr;
 | |
|     if a && b && c && d && e && f && g {
 | |
|         core::hint::black_box("hello");
 | |
|     }
 | |
| }
 | |
| 
 | |
| #[coverage(off)]
 | |
| fn main() {
 | |
|     accept_7_conditions([false; 7]);
 | |
|     accept_7_conditions([true; 7]);
 | |
| }
 |