[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CoverageMapping / abspath.cpp
blobc9705a64c335a9f6d0aaeab45e8fe6786fd688e3
1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -mllvm -enable-name-compression=false -emit-llvm -main-file-name abspath.cpp %S/Inputs/../abspath.cpp -o - | FileCheck -check-prefix=RMDOTS %s
3 // RMDOTS: @__llvm_coverage_mapping = {{.*}}"\02
4 // RMDOTS-NOT: Inputs
5 // RMDOTS: "
7 // RUN: mkdir -p %t/test && cd %t/test
8 // RUN: echo "void f1(void) {}" > f1.c
9 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -mllvm -enable-name-compression=false -emit-llvm -main-file-name abspath.cpp %t/test/f1.c -o - | FileCheck -check-prefix=ABSPATH %s
11 // RELPATH: @__llvm_coverage_mapping = {{.*}}"\02
12 // RELPATH: {{..(/|\\\\)test(/|\\\\)f1}}.c
13 // RELPATH: "
15 // ABSPATH: @__llvm_coverage_mapping = {{.*}}"\02
16 // ABSPATH: {{[/\\].*(/|\\\\)test(/|\\\\)f1}}.c
17 // ABSPATH: "
19 void f1(void) {}