diff options
Diffstat (limited to 'llvm/test/tools/llvm-cov/prevent_false_instantiations.h')
-rw-r--r-- | llvm/test/tools/llvm-cov/prevent_false_instantiations.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/prevent_false_instantiations.h b/llvm/test/tools/llvm-cov/prevent_false_instantiations.h new file mode 100644 index 00000000000..667ebde6d16 --- /dev/null +++ b/llvm/test/tools/llvm-cov/prevent_false_instantiations.h @@ -0,0 +1,10 @@ +// Checks that function instantiations don't go to a wrong file. + +// CHECK-NOT: {{_Z5func[1,2]v}} + +// RUN: llvm-profdata merge %S/Inputs/prevent_false_instantiations.proftext -o %t.profdata +// RUN: llvm-cov show %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s + +#define DO_SOMETHING() \ + do { \ + } while (0) |