xref: /llvm-project/llvm/test/tools/llvm-cov/Inputs/mcdc-const.cpp (revision ae36790be4a2a6c9dc8900f659c861647cab66d5)
1 #include <stdio.h>
2 
3 
4 
5 
6 
7 
8 
9 
test(bool a,bool b,bool c,bool d)10 void test(bool a, bool b, bool c, bool d) {
11 
12   if ((a && 1) || (0 && d) || 0)
13     printf("test1 decision true\n");
14 }
15 
main()16 int main()
17 {
18     test(true,false,true,false);
19     test(true,false,true,true);
20     test(true,true,false,false);
21     test(false,true,true,false);
22 
23     test(true,false,false,false);
24 
25     return 0;
26 }
27