2024-07-02 05:34:26 -05:00
|
|
|
#![feature(coverage_attribute)]
|
|
|
|
//@ edition: 2021
|
2024-06-19 04:49:10 -05:00
|
|
|
//@ min-llvm-version: 19
|
2024-07-02 05:34:26 -05:00
|
|
|
//@ 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);
|
|
|
|
}
|