2016-07-19 06:32:02 +08:00
|
|
|
// This test requires mkdir.
|
|
|
|
// REQUIRES: shell
|
|
|
|
//
|
|
|
|
// 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: "
|
|
|
|
|
|
|
|
// RUN: cd %T && mkdir -p test && cd test
|
|
|
|
// 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
|
|
|
|
// RELPATH: test{{.*}}f1.c
|
|
|
|
// RELPATH: "
|
2016-07-19 05:01:27 +08:00
|
|
|
|
|
|
|
void f1() {}
|