diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:44:32 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:44:32 +0000 |
commit | 5a5ac124e1efaf208671f01c46edb15f29ed2a0b (patch) | |
tree | a6140557876943cdd800ee997c9317283394b22c /test/tools/llvm-cov/binary-formats.c | |
parent | f03b5bed27d0d2eafd68562ce14f8b5e3f1f0801 (diff) |
Diffstat (limited to 'test/tools/llvm-cov/binary-formats.c')
-rw-r--r-- | test/tools/llvm-cov/binary-formats.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/binary-formats.c b/test/tools/llvm-cov/binary-formats.c new file mode 100644 index 000000000000..31c6c4c3bf4d --- /dev/null +++ b/test/tools/llvm-cov/binary-formats.c @@ -0,0 +1,9 @@ +// Checks for reading various formats. + +// CHECK: 100| [[@LINE+1]]|int main +int main(int argc, const char *argv[]) {} + +// RUN: llvm-profdata merge %S/Inputs/binary-formats.proftext -o %t.profdata +// RUN: llvm-cov show %S/Inputs/binary-formats.macho32l -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s +// RUN: llvm-cov show %S/Inputs/binary-formats.macho64l -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s +// RUN: llvm-cov show %S/Inputs/binary-formats.macho32b -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s |