00bfd702dc
Disable the tests and generate an error if MC/DC is used on LLVM 19. The support will be ported separately, as it is substantially different on LLVM 19, and there are no plans to support both versions.
19 lines
492 B
Rust
19 lines
492 B
Rust
#![feature(coverage_attribute)]
|
|
//@ edition: 2021
|
|
//@ min-llvm-version: 18
|
|
//@ ignore-llvm-version: 19 - 99
|
|
//@ compile-flags: -Zcoverage-options=mcdc -Copt-level=z -Cllvm-args=--inline-threshold=0
|
|
//@ llvm-cov-flags: --show-branches=count --show-mcdc
|
|
|
|
#[inline(always)]
|
|
fn inlined_instance(a: bool, b: bool) -> bool {
|
|
a && b
|
|
}
|
|
|
|
#[coverage(off)]
|
|
fn main() {
|
|
let _ = inlined_instance(true, false);
|
|
let _ = inlined_instance(false, true);
|
|
let _ = inlined_instance(true, true);
|
|
}
|