diff options
| author | bors <bors@rust-lang.org> | 2024-10-08 07:08:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-08 07:08:41 +0000 |
| commit | cf24c73141a77db730f4b7fda69dcd7e8b113b51 (patch) | |
| tree | 036b31c635fb5651cefd0f859046e5a174f8aef2 /tests/coverage/mcdc/if.rs | |
| parent | e6c46db4e9fd11e3183c397a59d946731034ede6 (diff) | |
| parent | acd64fa0d9e5c17de02a5b2a592163a377e33bcc (diff) | |
| download | rust-cf24c73141a77db730f4b7fda69dcd7e8b113b51.tar.gz rust-cf24c73141a77db730f4b7fda69dcd7e8b113b51.zip | |
Auto merge of #126733 - ZhuUx:llvm-19-adapt, r=Zalathar
[Coverage][MCDC] Adapt mcdc to llvm 19 Related issue: #126672 Also finish task 4 at #124144 [llvm #82448](https://github.com/llvm/llvm-project/pull/82448) has introduced some break changes into mcdc, causing incompatibility between llvm 18 and 19. This draft adapts to that change and gives up supporting for llvm-18.
Diffstat (limited to 'tests/coverage/mcdc/if.rs')
| -rw-r--r-- | tests/coverage/mcdc/if.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coverage/mcdc/if.rs b/tests/coverage/mcdc/if.rs index 17247f5e0c1..a2abb2edf11 100644 --- a/tests/coverage/mcdc/if.rs +++ b/tests/coverage/mcdc/if.rs @@ -1,6 +1,6 @@ #![feature(coverage_attribute)] //@ edition: 2021 -//@ ignore-llvm-version: 19 - 99 +//@ min-llvm-version: 19 //@ compile-flags: -Zcoverage-options=mcdc //@ llvm-cov-flags: --show-branches=count --show-mcdc @@ -48,7 +48,7 @@ fn mcdc_check_tree_decision(a: bool, b: bool, c: bool) { fn mcdc_check_not_tree_decision(a: bool, b: bool, c: bool) { // Contradict to `mcdc_check_tree_decision`, - // 100% branch coverage of this expression does not mean indicates 100% mcdc coverage. + // 100% branch coverage of this expression does not indicate 100% mcdc coverage. if (a || b) && c { say("pass"); } else { |
