about summary refs log tree commit diff
path: root/tests/coverage/mcdc/condition-limit.rs
blob: 520a9f44e080b33c1685adc5e5e1928e2286d443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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]);
}