1
Fork 0

coverage. MCDC tests also report branches coverage

This commit is contained in:
zhuyunxing 2024-07-02 14:24:43 +08:00
parent 4f6140258f
commit c77788f011
6 changed files with 78 additions and 6 deletions

View file

@ -2,7 +2,7 @@
//@ edition: 2021
//@ min-llvm-version: 18
//@ compile-flags: -Zcoverage-options=mcdc
//@ llvm-cov-flags: --show-mcdc
//@ llvm-cov-flags: --show-branches=count --show-mcdc
fn nested_if_in_condition(a: bool, b: bool, c: bool) {
if a && if b || c { true } else { false } {