2016-04-18 23:36:30 +08:00
|
|
|
// Checks that function instantiations don't go to a wrong file.
|
|
|
|
|
2016-04-29 09:31:49 +08:00
|
|
|
// INSTANTIATION-NOT: {{_Z5func[1,2]v}}
|
2016-07-22 20:46:13 +08:00
|
|
|
// NAN-NOT: {{[ \t]+}}nan%
|
2016-04-18 23:36:30 +08:00
|
|
|
|
|
|
|
// RUN: llvm-profdata merge %S/Inputs/prevent_false_instantiations.proftext -o %t.profdata
|
2016-06-28 08:15:54 +08:00
|
|
|
// RUN: llvm-cov show -format text %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck %s -check-prefix=INSTANTIATION
|
2016-04-29 09:31:49 +08:00
|
|
|
// RUN: llvm-cov report %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=NAN
|
2016-04-18 23:36:30 +08:00
|
|
|
|
|
|
|
#define DO_SOMETHING() \
|
|
|
|
do { \
|
|
|
|
} while (0)
|