13 lines · c
1// Checks that function instantiations don't go to a wrong file.2 3// INSTANTIATION-NOT: {{_Z5func[1,2]v}}4// NAN-NOT: {{[ \t]+}}nan%5 6// RUN: llvm-profdata merge %S/Inputs/prevent_false_instantiations.proftext -o %t.profdata7// RUN: llvm-cov show -format text %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata -path-equivalence=/tmp/false_instantiations/./,%S %s | FileCheck %s -check-prefix=INSTANTIATION8// RUN: llvm-cov report %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=NAN9 10#define DO_SOMETHING() \11 do { \12 } while (0)13