xref: /minix3/external/bsd/llvm/dist/clang/test/CoverageMapping/Inputs/header1.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc #ifndef HEADER1_H
2*0a6a1f1dSLionel Sambuc #define HEADER1_H
3*0a6a1f1dSLionel Sambuc 
func(int i)4*0a6a1f1dSLionel Sambuc inline void func(int i) {
5*0a6a1f1dSLionel Sambuc   int x = 0;
6*0a6a1f1dSLionel Sambuc   if (i == 0) {
7*0a6a1f1dSLionel Sambuc     x = 1;
8*0a6a1f1dSLionel Sambuc   } else {
9*0a6a1f1dSLionel Sambuc     x = 2;
10*0a6a1f1dSLionel Sambuc   }
11*0a6a1f1dSLionel Sambuc }
static_func(int j)12*0a6a1f1dSLionel Sambuc static void static_func(int j) {
13*0a6a1f1dSLionel Sambuc   int x = 0;
14*0a6a1f1dSLionel Sambuc   if (j == x) {
15*0a6a1f1dSLionel Sambuc     x = !j;
16*0a6a1f1dSLionel Sambuc   } else {
17*0a6a1f1dSLionel Sambuc     x = 42;
18*0a6a1f1dSLionel Sambuc   }
19*0a6a1f1dSLionel Sambuc   j = x * j;
20*0a6a1f1dSLionel Sambuc }
static_func2(int j)21*0a6a1f1dSLionel Sambuc static void static_func2(int j) {
22*0a6a1f1dSLionel Sambuc   int x = 0;
23*0a6a1f1dSLionel Sambuc   if (j == x) {
24*0a6a1f1dSLionel Sambuc     x = !j;
25*0a6a1f1dSLionel Sambuc   } else {
26*0a6a1f1dSLionel Sambuc     x = 42;
27*0a6a1f1dSLionel Sambuc   }
28*0a6a1f1dSLionel Sambuc   j = x * j;
29*0a6a1f1dSLionel Sambuc }
30*0a6a1f1dSLionel Sambuc 
31*0a6a1f1dSLionel Sambuc #endif // HEADER1_H
32