coverage. Add coverage-options=mcdc as gate for MC/DC instrument

This commit is contained in:
zhuyunxing 2024-04-19 10:43:53 +08:00
parent e3181b091e
commit 68f86381ee
10 changed files with 40 additions and 15 deletions

View file

@ -1,2 +1,2 @@
error: incorrect value `bad` for unstable option `coverage-options` - `branch` or `no-branch` was expected
error: incorrect value `bad` for unstable option `coverage-options` - either `no-branch`, `branch` or `mcdc` was expected

View file

@ -8,7 +8,13 @@
//@ [no-branch] check-pass
//@ [no-branch] compile-flags: -Zcoverage-options=no-branch
//@ [mcdc] check-pass
//@ [mcdc] compile-flags: -Zcoverage-options=mcdc
//@ [bad] check-fail
//@ [bad] compile-flags: -Zcoverage-options=bad
//@ [conflict] check-fail
//@ [conflict] compile-flags: -Zcoverage-options=no-branch,mcdc
fn main() {}