aboutsummaryrefslogtreecommitdiff
path: root/test/CoverageMapping/unused_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CoverageMapping/unused_names.c')
-rw-r--r--test/CoverageMapping/unused_names.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CoverageMapping/unused_names.c b/test/CoverageMapping/unused_names.c
index a03d18b6655d..bf0134c41ee4 100644
--- a/test/CoverageMapping/unused_names.c
+++ b/test/CoverageMapping/unused_names.c
@@ -2,14 +2,15 @@
// RUN: FileCheck -input-file %t %s
// RUN: FileCheck -check-prefix=SYSHEADER -input-file %t %s
-// Since foo is never emitted, there should not be a profile name for it.
+// CHECK-DAG: @__profc_bar
+// CHECK-DAG: @__llvm_prf_nm = private constant {{.*}}, section "{{.*__llvm_prf_names|.*lprfn}}"
-// CHECK-DAG: @__profn_bar = {{.*}} [3 x i8] c"bar"
-// CHECK-DAG: @__profn_baz = {{.*}} [3 x i8] c"baz"
-// CHECK-DAG: @__profn_unused_names.c_qux = {{.*}} [18 x i8] c"unused_names.c:qux"
-// CHECK-DAG: @__llvm_prf_nm = private constant {{.*}}, section "{{.*}}__llvm_prf_names"
+// These are never instantiated, so we shouldn't get counters for them.
+//
+// CHECK-NOT: @__profc_baz
+// CHECK-NOT: @__profc_unused_names.c_qux
-// SYSHEADER-NOT: @__profn_foo =
+// SYSHEADER-NOT: @__profc_foo =
#ifdef IS_SYSHEADER