2016-06-30 00:23:34 +08:00
|
|
|
// To create the covmapping for this file, copy this file to /tmp/dots/,
|
2016-06-30 00:22:12 +08:00
|
|
|
// cd into /tmp/dots, and pass "../dots/double_dots.c" to the compiler. Use
|
|
|
|
// llvm-cov convert-for-testing to extract the covmapping.
|
|
|
|
|
|
|
|
// RUN: llvm-profdata merge %S/Inputs/double_dots.proftext -o %t.profdata
|
|
|
|
// RUN: llvm-cov show %S/Inputs/double_dots.covmapping -instr-profile=%t.profdata -o %t.dir
|
|
|
|
// RUN: FileCheck -input-file=%t.dir/index.txt %s
|
|
|
|
|
|
|
|
// CHECK-NOT: coverage{{.*}}dots{{.*}}..{{.*}}dots
|
|
|
|
|
|
|
|
int main() {}
|
2016-06-30 05:55:46 +08:00
|
|
|
|
|
|
|
// Re-purpose this file to test that we use relative paths when creating
|
|
|
|
// report indices:
|
|
|
|
|
|
|
|
// RUN: FileCheck -check-prefix=REL-INDEX -input-file %t.dir/index.txt %s
|
|
|
|
// REL-INDEX-NOT: %t.dir
|