2016-07-19 06:32:02 +08:00
|
|
|
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name abspath.cpp %S/Inputs/../abspath.cpp -o - | FileCheck -check-prefix=RMDOTS %s
|
2016-07-19 05:01:27 +08:00
|
|
|
|
2016-07-19 06:32:02 +08:00
|
|
|
// RMDOTS: @__llvm_coverage_mapping = {{.*}}"\01
|
|
|
|
// RMDOTS-NOT: Inputs
|
|
|
|
// RMDOTS: "
|
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: mkdir -p %t/test && cd %t/test
|
2016-07-19 06:32:02 +08:00
|
|
|
// RUN: echo "void f1() {}" > f1.c
|
|
|
|
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name abspath.cpp ../test/f1.c -o - | FileCheck -check-prefix=RELPATH %s
|
|
|
|
|
|
|
|
// RELPATH: @__llvm_coverage_mapping = {{.*}}"\01
|
2016-07-22 08:25:09 +08:00
|
|
|
// RELPATH: {{[/\\]}}{{.*}}{{[/\\][^/\\]*}}test{{[/\\][^/\\]*}}f1.c
|
2016-07-19 06:32:02 +08:00
|
|
|
// RELPATH: "
|
2016-07-19 05:01:27 +08:00
|
|
|
|
|
|
|
void f1() {}
|