llvm-capstone/clang/test/CoverageMapping/mcdc-error-conditions.cpp
Alan Phipps 8b2bdfbca7 [Coverage][clang] Enable MC/DC Support in LLVM Source-based Code Coverage (3/3)
Part 3 of 3. This includes the MC/DC clang front-end components.

Differential Revision: https://reviews.llvm.org/D138849
2024-01-04 12:29:18 -06:00

8 lines
402 B
C++

// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++11 -fcoverage-mcdc -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s 2>&1| FileCheck %s
bool func_conditions(bool a, bool b, bool c, bool d, bool e, bool f, bool g) {
return a && b && c && d && e && f && g;
}
// CHECK: warning: unsupported MC/DC boolean expression; number of conditions{{.*}} exceeds max