xref: /llvm-project/clang/test/CoverageMapping/mcdc-error-nests.cpp (revision 8b2bdfbca7c1db272e4e703445f5626b4bc4b9d3)
1*8b2bdfbcSAlan Phipps // 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
2*8b2bdfbcSAlan Phipps 
3*8b2bdfbcSAlan Phipps // "Split-nest" -- boolean expressions within boolean expressions.
4*8b2bdfbcSAlan Phipps extern bool bar(bool);
func_split_nest(bool a,bool b,bool c,bool d,bool e,bool f,bool g)5*8b2bdfbcSAlan Phipps bool func_split_nest(bool a, bool b, bool c, bool d, bool e, bool f, bool g) {
6*8b2bdfbcSAlan Phipps   bool res = a && b && c && bar(d && e) && f && g;
7*8b2bdfbcSAlan Phipps   return bar(res);
8*8b2bdfbcSAlan Phipps }
9*8b2bdfbcSAlan Phipps 
10*8b2bdfbcSAlan Phipps // CHECK: warning: unsupported MC/DC boolean expression; contains an operation with a nested boolean expression.
11