summaryrefslogtreecommitdiffstats
path: root/test/CoverageMapping
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-07-18 21:01:27 +0000
committerVedant Kumar <vsk@apple.com>2016-07-18 21:01:27 +0000
commitbca87a6cb2406cc6b6262af8d4a7c06de623065c (patch)
treed90342a68a89efa022e97a18dbce8ea891823861 /test/CoverageMapping
parent5de4c509d166eaa7cebb7c95e45e6f95ce314d51 (diff)
[Coverage] Normalize '..' out of filename strings
This fixes the issue of having duplicate entries for the same file in a coverage report s.t none of the entries actually displayed the correct coverage information. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CoverageMapping')
-rw-r--r--test/CoverageMapping/abspath.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CoverageMapping/abspath.cpp b/test/CoverageMapping/abspath.cpp
new file mode 100644
index 0000000000..ffc3896c41
--- /dev/null
+++ b/test/CoverageMapping/abspath.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name abspath.cpp %S/Inputs/../abspath.cpp -o - | FileCheck %s
+
+// CHECK: @__llvm_coverage_mapping = {{.*}}"\01
+// CHECK-NOT: Inputs
+// CHECK: "
+
+void f1() {}