Home | History | Annotate | Download | only in llvm-cov
      1 // Checks that function instantiations don't go to a wrong file.
      2 
      3 // INSTANTIATION-NOT: {{_Z5func[1,2]v}}
      4 // NAN-NOT: 0{{[ \t]+}}nan%{{[ \t]+}}0{{[ \t]+}}nan%
      5 
      6 // RUN: llvm-profdata merge %S/Inputs/prevent_false_instantiations.proftext -o %t.profdata
      7 // RUN: llvm-cov show -format text %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s -check-prefix=INSTANTIATION
      8 // RUN: llvm-cov report %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=NAN
      9 
     10 #define DO_SOMETHING() \
     11   do {                 \
     12   } while (0)
     13