2024-04-30 19:44:31 -05:00
|
|
|
#![feature(coverage_attribute)]
|
|
|
|
//@ edition: 2021
|
2024-06-19 04:49:10 -05:00
|
|
|
//@ min-llvm-version: 19
|
2024-04-30 19:44:31 -05:00
|
|
|
//@ compile-flags: -Zcoverage-options=mcdc
|
|
|
|
//@ llvm-cov-flags: --show-branches=count --show-mcdc
|
|
|
|
|
2024-07-25 02:23:35 -05:00
|
|
|
fn accept_7_conditions(bool_arr: [bool; 7]) {
|
|
|
|
let [a, b, c, d, e, f, g] = bool_arr;
|
2024-04-30 19:44:31 -05:00
|
|
|
if a && b && c && d && e && f && g {
|
|
|
|
core::hint::black_box("hello");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[coverage(off)]
|
|
|
|
fn main() {
|
2024-07-25 02:23:35 -05:00
|
|
|
accept_7_conditions([false; 7]);
|
|
|
|
accept_7_conditions([true; 7]);
|
2024-04-30 19:44:31 -05:00
|
|
|
}
|