diff options
Diffstat (limited to 'llvm/test/tools')
-rw-r--r-- | llvm/test/tools/llvm-cov/Inputs/double_dots.covmapping | bin | 0 -> 116 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-cov/Inputs/double_dots.proftext | 8 | ||||
-rw-r--r-- | llvm/test/tools/llvm-cov/double_dots.c | 11 |
3 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/double_dots.covmapping b/llvm/test/tools/llvm-cov/Inputs/double_dots.covmapping Binary files differnew file mode 100644 index 00000000000..b127ff63701 --- /dev/null +++ b/llvm/test/tools/llvm-cov/Inputs/double_dots.covmapping diff --git a/llvm/test/tools/llvm-cov/Inputs/double_dots.proftext b/llvm/test/tools/llvm-cov/Inputs/double_dots.proftext new file mode 100644 index 00000000000..5419d233fc0 --- /dev/null +++ b/llvm/test/tools/llvm-cov/Inputs/double_dots.proftext @@ -0,0 +1,8 @@ +main +# Func Hash: +0 +# Num Counters: +1 +# Counter Values: +1 + diff --git a/llvm/test/tools/llvm-cov/double_dots.c b/llvm/test/tools/llvm-cov/double_dots.c new file mode 100644 index 00000000000..fe78d91e9dd --- /dev/null +++ b/llvm/test/tools/llvm-cov/double_dots.c @@ -0,0 +1,11 @@ +// To create the covmapping for this file, copy this file to /tmp/dots/test.c, +// 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() {} |