Alex Lorenz 34ac9b5e25 Add tests for coverage mapping generation.
This patch adds the tests for the coverage mapping generation. 
Most of the tests check the mapping regions produced by 
the generator, and one checks the llvm IR.

Differential Revision: http://reviews.llvm.org/D4847

llvm-svn: 215995
2014-08-19 17:32:30 +00:00

32 lines
385 B
C

#ifndef HEADER1_H
#define HEADER1_H
inline void func(int i) {
int x = 0;
if (i == 0) {
x = 1;
} else {
x = 2;
}
}
static void static_func(int j) {
int x = 0;
if (j == x) {
x = !j;
} else {
x = 42;
}
j = x * j;
}
static void static_func2(int j) {
int x = 0;
if (j == x) {
x = !j;
} else {
x = 42;
}
j = x * j;
}
#endif // HEADER1_H