aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-cov/Inputs/mcdc-const.cpp
blob: 687baea6b911c78c771a1b05432d2779199a5f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>








void test(bool a, bool b, bool c, bool d) {

  if ((a && 1) || (0 && d) || 0)
    printf("test1 decision true\n");
}

int main()
{
    test(true,false,true,false);
    test(true,false,true,true);
    test(true,true,false,false);
    test(false,true,true,false);

    test(true,false,false,false);

    return 0;
}